commit 6840205e84422c8394c1998613a1a31352e0bc3a
parent 3c5e5d4b6f7fd388578622e3ed9c78aad88055c1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 12 Sep 2018 15:07:44 +0200
tweaks: remove a superfluous comment and a redundant assignment
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -1096,7 +1096,6 @@ int convert_sequence(const int *seq, size_t length, int *consumed)
if (length > 2 && seq[2] == '~')
return KEY_DC;
if (length > 4 && seq[2] == ';' && seq[4] == '~') {
- /* Esc [ 3 ; x ~ == modified Delete on xterm. */
*consumed = 5;
if (seq[3] == '5')
/* Esc [ 3 ; 5 ~ == Ctrl-Delete on xterm. */
@@ -1105,11 +1104,9 @@ int convert_sequence(const int *seq, size_t length, int *consumed)
/* Esc [ 3 ; 6 ~ == Ctrl-Shift-Delete on xterm. */
return controlshiftdelete;
}
- if (length > 2 && seq[2] == '^') {
+ if (length > 2 && seq[2] == '^')
/* Esc [ 3 ^ == Ctrl-Delete on urxvt. */
- *consumed = 3;
return CONTROL_DELETE;
- }
if (length > 2 && seq[2] == '@')
/* Esc [ 3 @ == Ctrl-Shift-Delete on urxvt. */
return controlshiftdelete;