From 2eaf8b69e82603093b56ace5fdedbdc0249e77a0 Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Mon, 13 Sep 2021 14:10:09 +0200 Subject: More lints --- ui/editor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/editor_test.go') 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, -- cgit v1.2.3