fix: make ctrl delete work on st

ctrl-delete
TorchedSammy 2022-04-12 22:27:25 -04:00
parent d3e043ac07
commit deeebf155b
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ var (
seqDelete = string([]byte{27, 91, 51, 126})
seqDelete2 = string([]byte{27, 91, 80})
seqCtrlDelete = string([]byte{27, 91, 51, 59, 53, 126})
seqCtrlDelete2 = string([]byte{27, 91, 77})
seqShiftTab = string([]byte{27, 91, 90})
seqAltQuote = string([]byte{27, 34}) // Added for showing registers ^["
seqAltR = string([]byte{27, 114}) // Used for alternative history

View File

@ -777,7 +777,7 @@ func (rl *Instance) escapeSeq(r []rune) {
rl.viDeleteByAdjust(rl.viJumpB(tokeniseLine))
rl.updateHelpers()
case seqCtrlDelete:
case seqCtrlDelete, seqCtrlDelete2:
if rl.modeTabCompletion {
rl.resetVirtualComp(false)
}