Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the new line its own entry in the history buffer. (#4389)
* Make the new line its own entry in the history buffer. Placing the new (empty) line in its own entry in the history buffer changes functionality by fixing two issues: - when mHighlightHistory is false, it is annoying to clear the history after scrolling through it: after pressing up followed by down does not clear the line, and it's challenging to clear it. - when mAutoClearCommandLineAfterSend is false, if you go up in history, then clear that by starting to type, if you press up again you get the _second_ to last command you sent. There are other ways you could fix these issues, but this method is clean and will be convenient for allowing editing of history, which is my next pull request. * response to code review
- Loading branch information
1 parent
b33b6c8
commit 84423b9
Showing
1 changed file
with
17 additions
and
32 deletions.
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