From ad7a034a043a21b63a9d954b922b21d7d64fbb97 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. --- usr.bin/tmux/tty-keys.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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; -- 2.20.1