Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly track persistence mode in history_item_t
Commands that start with a space should not be written to the history file. Prior to this change, that was implemented by simply not adding them to history. Items with leading spaces were simply dropped. With this change, we add a 'history_persistence_mode_t' to history_item_t, which tracks how the item persists. Items with leading spaces are now marked as "ephemeral": they can be recovered via up arrow, until the user runs another command, or types a space and hits return. This matches zsh's HIST_IGNORE_SPACE feature. Fixes #1383
- Loading branch information
1 parent
cdf0532
commit 9fdc4f9
Showing
5 changed files
with
174 additions
and
105 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
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
Oops, something went wrong.