summaryrefslogtreecommitdiff
path: root/ui/editor_test.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-13 14:10:09 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-13 14:10:09 +0200
commit2eaf8b69e82603093b56ace5fdedbdc0249e77a0 (patch)
tree22ecc819dd52808dae66eb4017618df6877e2de9 /ui/editor_test.go
parentRandom code improvements/tidying (diff)
More lints
Diffstat (limited to 'ui/editor_test.go')
-rw-r--r--ui/editor_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/editor_test.go b/ui/editor_test.go
index d670e0e..733f633 100644
--- a/ui/editor_test.go
+++ b/ui/editor_test.go
@@ -2,8 +2,8 @@ package ui
import "testing"
-var hell Editor = Editor{
- text: [][]rune{[]rune{'h', 'e', 'l', 'l'}},
+var hell = Editor{
+ text: [][]rune{{'h', 'e', 'l', 'l'}},
textWidth: []int{0, 1, 2, 3, 4},
cursorIdx: 4,
offsetIdx: 0,
@@ -55,7 +55,7 @@ func TestOneLetter(t *testing.T) {
e.Resize(5)
e.PutRune('h')
assertEditorEq(t, e, Editor{
- text: [][]rune{[]rune{'h'}},
+ text: [][]rune{{'h'}},
textWidth: []int{0, 1},
cursorIdx: 1,
offsetIdx: 0,