From e5c9b850083159b9f435c964d92b5351659174d9 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 13 Apr 2022 16:58:36 -0400 Subject: [PATCH] feat: add ctrl _ to undo --- readline/readline.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readline/readline.go b/readline/readline.go index 129d5c7..f703489 100644 --- a/readline/readline.go +++ b/readline/readline.go @@ -416,6 +416,10 @@ func (rl *Instance) Readline() (string, error) { rl.renderHelpers() } + case charCtrlUnderscore: + rl.undoLast() + rl.viUndoSkipAppend = true + case '\r': fallthrough case '\n':