From 201a8d8e7eb0bf208918c698e64aa120864c6dfc Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 1 Jun 2022 15:43:22 +0000 Subject: [PATCH] If escape-time is 0, force to 1 instead - not waiting at all is asking for problems on some platforms. --- tty-keys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tty-keys.c b/tty-keys.c index 64dd91bb..d26dbf1e 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -798,6 +798,8 @@ partial_key: /* Get the time period. */ delay = options_get_number(global_options, "escape-time"); + if (delay == 0) + delay = 1; tv.tv_sec = delay / 1000; tv.tv_usec = (delay % 1000) * 1000L;