feat: add ctrl _ to undo

pull/143/head
TorchedSammy 2022-04-13 16:58:36 -04:00
parent e044aeb5ed
commit e5c9b85008
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 4 additions and 0 deletions

View File

@ -416,6 +416,10 @@ func (rl *Instance) Readline() (string, error) {
rl.renderHelpers()
}
case charCtrlUnderscore:
rl.undoLast()
rl.viUndoSkipAppend = true
case '\r':
fallthrough
case '\n':