readline
readline copied to clipboard
multi-line entries in history cause erroneous behavior
Found with the following:
- enter a multi-line entry in the history (e.g.
AddHistory("foo\nbar")) - recall the multi-line entry. The cursor is positioned (correctly) at the end of the last line.
- try to navigate backwards with left-arrow: the display is messed up.
Note: you need to use xterm, st or some more strict vt100 terminal emulator to see this problem occurring. With OSX terminal, iTerm or tmux/screen the issue disappears.