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:
parent
7e4fd18519
commit
9345e57859
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue