diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-13 14:10:09 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-13 14:10:09 +0200 |
commit | 2eaf8b69e82603093b56ace5fdedbdc0249e77a0 (patch) | |
tree | 22ecc819dd52808dae66eb4017618df6877e2de9 /ui/editor_test.go | |
parent | Random code improvements/tidying (diff) |
More lints
Diffstat (limited to 'ui/editor_test.go')
-rw-r--r-- | ui/editor_test.go | 6 |
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, |