diff options
author | Peter Stephenson <pws@zsh.org> | 2013-10-07 11:43:55 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2013-10-07 11:43:55 +0100 |
commit | 9345e57859eda273d2d14346fa48e15b109fbe2d (patch) | |
tree | 8a3955e31bac2586a395bbe573c596cd17976767 /Src | |
parent | 7e4fd18519a02de10c0f25e57590267510b5d77e (diff) | |
download | zsh-9345e57859eda273d2d14346fa48e15b109fbe2d.tar.gz zsh-9345e57859eda273d2d14346fa48e15b109fbe2d.tar.xz zsh-9345e57859eda273d2d14346fa48e15b109fbe2d.zip |
31793: Fix problem with non-interactive history.
Modify 31789 so it doesn't try to save history from hbegin() in that case.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/hist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/hist.c b/Src/hist.c index 1961d8350..c58ce8b34 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -928,7 +928,7 @@ hbegin(int dohist) histactive = HA_ACTIVE | HA_NOINC; hf = getsparam("HISTFILE"); - if (isset(INCAPPENDHISTORY)) + if (isset(INCAPPENDHISTORY) && !(histactive & HA_NOINC) && !strin) savehistfile(hf, 0, HFILE_USE_OPTIONS | HFILE_FAST); } |