2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 13:03:22 +00:00

fix(readline): typo in virtual candidate insert

This commit is contained in:
TorchedSammy 2022-04-21 10:49:19 -04:00
parent 4daebf2643
commit 1e868e4165
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -21,7 +21,7 @@ func (rl *Instance) insertCandidateVirtual(candidate []rune) {
// Keep reference of previous candidate to compare its prefix
oldComp := rl.currentComp
// We place the cursor back at the beginning of the previous virtual candidate
rl.pos -= len(rl.oldCOmp)
rl.pos -= len(rl.oldComp)
// We delete the previous virtual completion, just
// like we would delete a word in vim editing mode.