From e6f2d776d3ce582533fc6177082270872fcf67a3 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Mon, 30 Jul 2018 15:39:51 +0100
Subject: 43225: Recalculate ZLE timeout.
Needed when looping owing to having handled a special fd.
---
Src/Zle/zle_main.c | 2 ++
1 file changed, 2 insertions(+)
(limited to 'Src/Zle/zle_main.c')
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 99e44a744..7ec8afeb6 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -804,6 +804,8 @@ raw_getbyte(long do_keytmout, char *cptr)
}
# endif
}
+ /* If looping, need to recalculate timeout */
+ calc_timeout(&tmout, do_keytmout);
}
# ifdef HAVE_POLL
zfree(fds, sizeof(struct pollfd) * nfds);
--
cgit 1.4.1