mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
Don't mark a HIST_TMPSTORE entry with HIST_OLD so that the HFILE_FAST
algorithm in savehistfile() will recheck this hist num later.
This commit is contained in:
parent
8e87930abb
commit
b207aeeded
1 changed files with 1 additions and 1 deletions
|
@ -1095,7 +1095,7 @@ hend(Eprog prog)
|
|||
if (isset(HISTREDUCEBLANKS))
|
||||
histreduceblanks();
|
||||
}
|
||||
newflags = save > 0? 0 : HIST_OLD | HIST_TMPSTORE;
|
||||
newflags = save > 0? 0 : HIST_TMPSTORE;
|
||||
if ((isset(HISTIGNOREDUPS) || isset(HISTIGNOREALLDUPS)) && save > 0
|
||||
&& hist_ring && histstrcmp(chline, hist_ring->text) == 0) {
|
||||
/* This history entry compares the same as the previous.
|
||||
|
|
Loading…
Reference in a new issue