mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
23736: status for file save wasn't initialised
This commit is contained in:
parent
d86089ee6e
commit
3c75ea5de5
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-08-01 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 23736: Src/hist.c: status for file save wasnʼt
|
||||
initialised.
|
||||
|
||||
* unposted: **/.distfiles: update files for distribution.
|
||||
|
||||
2007-07-31 Peter Stephenson <pws@csr.com>
|
||||
|
|
|
@ -2225,6 +2225,7 @@ savehistfile(char *fn, int err, int writeflags)
|
|||
}
|
||||
}
|
||||
if (out) {
|
||||
ret = 0;
|
||||
for (; he && he->histnum <= xcurhist; he = down_histent(he)) {
|
||||
if ((writeflags & HFILE_SKIPDUPS && he->node.flags & HIST_DUP)
|
||||
|| (writeflags & HFILE_SKIPFOREIGN && he->node.flags & HIST_FOREIGN)
|
||||
|
|
Loading…
Reference in a new issue