diff options
Diffstat (limited to 'Src/hist.c')
-rw-r--r-- | Src/hist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c index 842863992..a37b230b0 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -2028,10 +2028,13 @@ savehistfile(char *fn, int err, int writeflags) Histent remember_hist_ring = hist_ring; int remember_histlinect = histlinect; int remember_curhist = curhist; + int remember_histsiz = histsiz; + int remember_histactive = histactive; hist_ring = NULL; curhist = histlinect = 0; histsiz = savehist; + histactive = 0; createhisttable(); /* sets histtab */ hist_ignore_all_dups |= isset(HISTSAVENODUPS); @@ -2044,6 +2047,8 @@ savehistfile(char *fn, int err, int writeflags) histlinect = remember_histlinect; hist_ring = remember_hist_ring; histtab = remember_histtab; + histsiz = remember_histsiz; + histactive = remember_histactive; } } else if (err) zerr("can't write history file %s", fn, 0); |