mirror of https://github.com/Hilbis/Hilbish
fix: don't insert any unhandled control keys
parent
e5c9b85008
commit
194e4e01b7
|
@ -34,7 +34,6 @@ const (
|
||||||
charCtrlHat // ^^
|
charCtrlHat // ^^
|
||||||
charCtrlUnderscore // ^_
|
charCtrlUnderscore // ^_
|
||||||
charBackspace2 = 127 // ASCII 1963
|
charBackspace2 = 127 // ASCII 1963
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Escape sequences
|
// Escape sequences
|
||||||
|
|
|
@ -557,8 +557,8 @@ func (rl *Instance) editorInput(r []rune) {
|
||||||
rl.refreshVimStatus()
|
rl.refreshVimStatus()
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// For some reason Ctrl+k messes with the input line, so ignore it.
|
// Don't insert control keys
|
||||||
if r[0] == 11 {
|
if r[0] >= 1 && r[0] <= 31 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// We reset the history nav counter each time we come here:
|
// We reset the history nav counter each time we come here:
|
||||||
|
|
Loading…
Reference in New Issue