From 963466358a1795efe6304d90d8741ed068165887 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 28 Jun 2001 18:17:14 +0000 Subject: Have prepnexthistent() remove any HIST_TEMPSTORE entry that is present. --- Src/hist.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit 1.4.1