mirror of
https://github.com/Kyren223/eko.git
synced 2026-07-22 03:21:04 +00:00
Fixed SearcChar incorrect bounds in SearchChar aswell to avoid further
bugs
This commit is contained in:
@@ -21,7 +21,7 @@ func IsGrouped(r1, r2 rune) bool {
|
||||
|
||||
func SearchChar(line []rune, i, dir int, c rune) (index int, ok bool) {
|
||||
found := false
|
||||
for i > 0 && i < len(line) { // TODO: fix this, make sure it's i>=0
|
||||
for i >= 0 && i < len(line) {
|
||||
if line[i] == c {
|
||||
found = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user