From 867f4a0cc3acd9d880902507ce9589f17ce0c3b8 Mon Sep 17 00:00:00 2001 From: Noboru Saito Date: Tue, 1 Aug 2023 11:40:28 +0900 Subject: [PATCH] gofumpt -w --- oviewer/config.go | 2 +- oviewer/control_test.go | 2 +- oviewer/move_lateral.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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