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

windows-fixes
TorchedSammy 2022-03-13 20:00:11 -04:00
parent feb2ea18fb
commit 91222f9d74
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

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