2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-30 10:13:23 +00:00

feat: add ctrl _ to undo

This commit is contained in:
TorchedSammy 2022-04-13 16:58:36 -04:00
parent e044aeb5ed
commit e5c9b85008
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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':