1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

31793: Fix problem with non-interactive history.

Modify 31789 so it doesn't try to save history from hbegin()
in that case.
This commit is contained in:
Peter Stephenson 2013-10-07 11:43:55 +01:00
parent 7e4fd18519
commit 9345e57859
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-07 Peter Stephenson <p.stephenson@samsung.com>
* 31793: Src/hist.c (hbegin): Modify 31789 so that the save
history here only happens for interactive editing.
2013-10-06 Wayne Davison <wayned@users.sourceforge.net>
* users/18024: Completion/Unix/Command/_rsync: add new options for

View file

@ -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);
}