From b2acffe5bed62578bcf1e5e3e0c7123b4a0812bf Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 16 Jul 2018 18:14:26 +0200 Subject: [PATCH] input: stop from entering "3~" into the buffer --- src/winio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/winio.c b/src/winio.c index 720f335c..0c9cf546 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1080,6 +1080,8 @@ int convert_sequence(const int *seq, size_t length, int *consumed) /* Esc [ 2 ~ == Insert on VT220/VT320/ * Linux console/xterm/Terminal. */ return KEY_IC; + else if (length > 4 && seq[4] == '~') + *consumed = 5; break; case '3': /* Esc [ 3 ~ == Delete on VT220/VT320/ * Linux console/xterm/Terminal. */