mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-13 13:06:31 +02:00
39547: handle zero delta in calc_timeout()
This commit is contained in:
parent
4ab3fcc90d
commit
b71abea40f
|
@ -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>
|
2016-10-03 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* 39545: Src/builtin.c, Src/exec.c, Src/hist.c, Src/init.c,
|
* 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);
|
tfdat = (Timedfn)getdata(tfnode);
|
||||||
diff = tfdat->when - time(NULL);
|
diff = tfdat->when - time(NULL);
|
||||||
if (diff < 0) {
|
if (diff <= 0) {
|
||||||
/* Already due; call it and rescan. */
|
/* Already due; call it and rescan. */
|
||||||
tfdat->func();
|
tfdat->func();
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue