From 2915d26a19fa16bfda859b0051720b6427bdd1e5 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Mon, 5 Dec 2022 16:27:53 +0100 Subject: [PATCH] Fix double prefix key regression --- src/tty.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index faad20c..f5ffc35 100644 --- a/src/tty.c +++ b/src/tty.c @@ -306,10 +306,16 @@ void *tty_stdin_input_thread(void *arg) if (previous_char == option.prefix_code) { + if (input_char == option.prefix_code) + { + previous_char = 0; + continue; + } + switch (input_char) { case KEY_Q: - exit(EXIT_FAILURE); + exit(EXIT_SUCCESS); break; case KEY_SHIFT_F: tio_printf("Flushed data I/O channels")