tweaks: use a simple subtraction instead of a function call

master
Benno Schulenberg 2020-02-05 11:29:36 +01:00
parent 04738996fc
commit 5ea6054a75
1 changed files with 1 additions and 1 deletions

View File

@ -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;