diff --git a/readline/codes.go b/readline/codes.go index 56d44fb..e97af90 100644 --- a/readline/codes.go +++ b/readline/codes.go @@ -34,7 +34,6 @@ const ( charCtrlHat // ^^ charCtrlUnderscore // ^_ charBackspace2 = 127 // ASCII 1963 - ) // Escape sequences diff --git a/readline/readline.go b/readline/readline.go index f703489..255fcd6 100644 --- a/readline/readline.go +++ b/readline/readline.go @@ -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: