input: stop <Alt+Insert> from entering "3~" into the buffer

master
Benno Schulenberg 2018-07-16 18:14:26 +02:00
parent 2fef7f647d
commit b2acffe5be
1 changed files with 2 additions and 0 deletions

View File

@ -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. */