From feacef91b8114209bd9a87072930a02eb839ce9e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 14 Dec 2024 17:29:18 +0200 Subject: Reverted last bug fix, it was a wrong fix that caused a different bug, the root cause was the SearchChar function which was fixed in this commit --- internal/client/ui/viminput/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/client/ui/viminput/helpers.go') diff --git a/internal/client/ui/viminput/helpers.go b/internal/client/ui/viminput/helpers.go index 92bfa4e..3bbcd11 100644 --- a/internal/client/ui/viminput/helpers.go +++ b/internal/client/ui/viminput/helpers.go @@ -34,7 +34,7 @@ func SearchChar(line []rune, i, dir int, c rune) (index int, ok bool) { func SearchCharFunc(line []rune, i, dir int, f func(c rune) bool) (index int, ok bool) { found := false - for i > 0 && i < len(line) { + for i >= 0 && i < len(line) { if f(line[i]) { found = true break -- cgit v1.3.1