mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01:00
39547: handle zero delta in calc_timeout()
This commit is contained in:
parent
4ab3fcc90d
commit
b71abea40f
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2016-10-03 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 39547: Src/Zle/zle_main.c: handle zero delta in calc_timeout()
|
||||
|
||||
2016-10-03 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 39545: Src/builtin.c, Src/exec.c, Src/hist.c, Src/init.c,
|
||||
|
|
|
@ -471,7 +471,7 @@ calc_timeout(struct ztmout *tmoutp, long do_keytmout)
|
|||
|
||||
tfdat = (Timedfn)getdata(tfnode);
|
||||
diff = tfdat->when - time(NULL);
|
||||
if (diff < 0) {
|
||||
if (diff <= 0) {
|
||||
/* Already due; call it and rescan. */
|
||||
tfdat->func();
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue