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 // ^^
|
||||
charCtrlUnderscore // ^_
|
||||
charBackspace2 = 127 // ASCII 1963
|
||||
|
||||
)
|
||||
|
||||
// Escape sequences
|
||||
|
|
|
@ -557,8 +557,8 @@ func (rl *Instance) editorInput(r []rune) {
|
|||
rl.refreshVimStatus()
|
||||
|
||||
default:
|
||||
// For some reason Ctrl+k messes with the input line, so ignore it.
|
||||
if r[0] == 11 {
|
||||
// Don't insert control keys
|
||||
if r[0] >= 1 && r[0] <= 31 {
|
||||
return
|
||||
}
|
||||
// We reset the history nav counter each time we come here:
|
||||
|
|
Loading…
Reference in New Issue