about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-10-03 09:35:14 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-10-03 09:35:14 -0700
commitb71abea40f491726f96ea26143306ec27aa611ee (patch)
treed72d06b8524ffc5aad6d8830d8dd00818202c129 /Src/Zle/zle_main.c
parent4ab3fcc90d928d200f9e70c81189079c3316b42d (diff)
downloadzsh-b71abea40f491726f96ea26143306ec27aa611ee.tar.gz
zsh-b71abea40f491726f96ea26143306ec27aa611ee.tar.xz
zsh-b71abea40f491726f96ea26143306ec27aa611ee.zip
39547: handle zero delta in calc_timeout()
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 0b3b1fcf4..4b47d6072 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.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;