diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2001-06-28 18:17:14 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2001-06-28 18:17:14 +0000 |
commit | 963466358a1795efe6304d90d8741ed068165887 (patch) | |
tree | a583d589cfe3e282ba72e7950c1b9cb58fecc550 /Src | |
parent | 6ee1839f207eb681622d85522ace722feb96a200 (diff) | |
download | zsh-963466358a1795efe6304d90d8741ed068165887.tar.gz zsh-963466358a1795efe6304d90d8741ed068165887.tar.xz zsh-963466358a1795efe6304d90d8741ed068165887.zip |
Have prepnexthistent() remove any HIST_TEMPSTORE entry that is present.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/hist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c index 5b0fe0309..842863992 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -922,6 +922,10 @@ prepnexthistent(void) if (curline_in_ring) unlinkcurline(); + if (hist_ring && hist_ring->flags & HIST_TMPSTORE) { + curhist--; + freehistnode((HashNode)hist_ring); + } if (histlinect < histsiz) { he = (Histent)zcalloc(sizeof *he); |