1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

39547: handle zero delta in calc_timeout()

This commit is contained in:
Barton E. Schaefer 2016-10-03 09:35:14 -07:00
parent 4ab3fcc90d
commit b71abea40f
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

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