diff --git a/oviewer/config.go b/oviewer/config.go index 5b5af001..ee261af2 100644 --- a/oviewer/config.go +++ b/oviewer/config.go @@ -60,7 +60,7 @@ func NewConfig() Config { Prompt: OVPromptConfig{ Normal: OVPromptConfigNormal{ ShowFilename: true, - InvertColor: true, + InvertColor: true, }, }, } diff --git a/oviewer/control_test.go b/oviewer/control_test.go index 80fd7231..4b509c65 100644 --- a/oviewer/control_test.go +++ b/oviewer/control_test.go @@ -312,7 +312,7 @@ func TestDocument_requestFollow(t *testing.T) { for !m.BufEOF() { } - af, err := os.OpenFile(fname, os.O_APPEND|os.O_RDWR, 0600) + af, err := os.OpenFile(fname, os.O_APPEND|os.O_RDWR, 0o600) if err != nil { t.Fatal("open error", tt.fields.FileName) } diff --git a/oviewer/move_lateral.go b/oviewer/move_lateral.go index b0945b3b..a6e4ad29 100644 --- a/oviewer/move_lateral.go +++ b/oviewer/move_lateral.go @@ -148,7 +148,7 @@ func (m *Document) moveToWidth(scr SCR, moveTo int) (int, int, error) { return m.x, m.columnCursor, ErrNoColumn } - var widths = make([]int, 0, len(m.columnWidths)+2) + widths := make([]int, 0, len(m.columnWidths)+2) widths = append(widths, 0) widths = append(widths, m.columnWidths...) var cl, cr int