2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

fix(readline): dont reduce pos if its at 0

This commit is contained in:
TorchedSammy 2022-03-13 20:00:11 -04:00
parent feb2ea18fb
commit 91222f9d74
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -214,7 +214,7 @@ func (rl *Instance) Readline() (string, error) {
if rl.InputMode == Vim {
if rl.modeViMode == VimInsert {
rl.backspace()
} else {
} else if rl.pos != 0 {
rl.pos--
}
rl.renderHelpers()