convert string indices to rune slice indices

Related #193
This commit is contained in:
Gokcehan committed 2019-12-23 02:35:32 +03:00
1 parent 74eab96637
commit b0064df32c
2 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -382,7 +382,7 @@ func completeShell(acc []rune) (matches []string, longestAcc []rune) {
longestAcc = []rune(longest)
default:
matches, longest = matchFile(f[len(f)-1])
longestAcc = append(acc[:len(acc)-len(f[len(f)-1])], []rune(longest)...)
longestAcc = append(acc[:len(acc)-len([]rune(f[len(f)-1]))], []rune(longest)...)
}
return