From 5c12400184198ab2ac0e25864a13caa3a8a4a507 Mon Sep 17 00:00:00 2001 From: Mateusz Drewniak Date: Sun, 23 Jul 2023 18:34:54 +0200 Subject: [PATCH] Fix linter warnings --- lexer_test.go | 2 +- prompt.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lexer_test.go b/lexer_test.go index bd3fd632..8b14f481 100644 --- a/lexer_test.go +++ b/lexer_test.go @@ -69,7 +69,7 @@ func TestEagerLexerNext(t *testing.T) { func charLex(s string) []Token { var result []Token - for i, _ := range s { + for i := range s { result = append(result, NewSimpleToken(0, istrings.ByteNumber(i))) } diff --git a/prompt.go b/prompt.go index 8a32c723..615ce15a 100644 --- a/prompt.go +++ b/prompt.go @@ -160,7 +160,6 @@ func (p *Prompt) feed(b []byte) (shouldExit bool, rerender bool, userInput *User cols := p.renderer.UserInputColumns() rows := p.renderer.row - rerender = true switch key { case Enter, ControlJ, ControlM: