commit 5ea6054a75f8c1fb1fbaf43984ca3a3bb6866f75
parent 04738996fce00e3d385f468617c9a209a17cab49
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 5 Feb 2020 11:29:36 +0100
tweaks: use a simple subtraction instead of a function call
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -819,7 +819,7 @@ int convert_sequence(const int *seq, size_t length, int *consumed)
case 'c': /* Esc [ c == Shift-Right on rxvt/Eterm. */
case 'd': /* Esc [ d == Shift-Left on rxvt/Eterm. */
shift_held = TRUE;
- return arrow_from_ABCD(toupper(seq[1]));
+ return arrow_from_ABCD(seq[1] - 0x20);
case '[':
if (length > 2) {
*consumed = 3;