summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-06-01 15:43:23 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-06-01 15:43:23 +0000
commitac7f0e60a560303ecbf3018cea22879090780e6e (patch)
tree61ab97e527973e48eefdadbdda0b9a53ff9667b1 /usr.bin/tmux
parentad4be3981131f47e3703f2a7a6b663891df5080c (diff)
If escape-time is 0, force to 1 instead - not waiting at all is asking
for problems on some platforms.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty-keys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c
index e1b6f4cc2c6..2c6458e907a 100644
--- a/usr.bin/tmux/tty-keys.c
+++ b/usr.bin/tmux/tty-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-keys.c,v 1.155 2022/05/30 13:02:55 nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.156 2022/06/01 15:43:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;