mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 11:43:23 +00:00
fix(readline): dont reduce pos if its at 0
This commit is contained in:
parent
feb2ea18fb
commit
91222f9d74
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user