1
0
Fork 0
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:
Wayne Davison 2001-06-08 00:15:18 +00:00
parent 8e87930abb
commit b207aeeded

View file

@ -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.