From 91222f9d747c7dea2bd43a550db530a01ad0c5c7 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 13 Mar 2022 20:00:11 -0400 Subject: [PATCH] fix(readline): dont reduce pos if its at 0 --- readline/readline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readline/readline.go b/readline/readline.go index edcb8f6..d2f8622 100644 --- a/readline/readline.go +++ b/readline/readline.go @@ -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()