about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2013-10-07 11:43:55 +0100
committerPeter Stephenson <pws@zsh.org>2013-10-07 11:43:55 +0100
commit9345e57859eda273d2d14346fa48e15b109fbe2d (patch)
tree8a3955e31bac2586a395bbe573c596cd17976767 /Src
parent7e4fd18519a02de10c0f25e57590267510b5d77e (diff)
downloadzsh-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.c2
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);
 }