forked from jline/jline1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix behaviour of ConsoleReader.setBuffer() if cursor is not at end of…
… line If the cursor is not at the end of the line and the old and new buffers have a common prefix then setBuffer will call backspace with an incorrect argument and the buffer will be mangled. This patch fixes the bug. Signed-off-by: Charles Oliver Nutter <headius@headius.com>
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters