FuncFilterInputRune fails on filtering ctrl-J
isacikgoz opened this issue · comments
Ibrahim Serdar Acikgoz commented
Hi, when I implement the FuncFilterInputRune like below, it fails to filtering it. It places a
rune, but blocks all input after.
func filterInput(r rune) (rune, bool) {
switch r {
// block CtrlJ feature
case readline.CharCtrlJ:
return 'a', true
}
return r, true
}
Can be reporoduced on demo: Just replace my implementation and see the result.
My env is: darwin amd64, iterm2
Thanks in advance