Skip to content

Commit 0c989e4

Browse files
zeertzjqchrisbra
authored andcommitted
patch 9.1.0073: Looping over modifier_keys_table unnecessarily
Problem: Looping over modifier_keys_table[] unnecessarily with only MOD_MASK_ALT or MOD_MASK_CMD, as modifier_keys_table[] only contains MOD_MASK_SHIFT and MOD_MASK_CTRL, and the loop won't do anything. Solution: Remove MOD_MASK_ALT and MOD_MASK_CMD from the condition. (zeertzjq) closes: #13963 Signed-off-by: zeertzjq <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 6093703 commit 0c989e4

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/misc2.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,11 +1130,7 @@ simplify_key(int key, int *modifiers)
11301130
int key0;
11311131
int key1;
11321132

1133-
if (!(*modifiers & (MOD_MASK_SHIFT | MOD_MASK_CTRL | MOD_MASK_ALT
1134-
#ifdef FEAT_GUI_GTK
1135-
| MOD_MASK_CMD
1136-
#endif
1137-
)))
1133+
if (!(*modifiers & (MOD_MASK_SHIFT | MOD_MASK_CTRL)))
11381134
return key;
11391135

11401136
// TAB is a special case

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
73,
707709
/**/
708710
72,
709711
/**/

0 commit comments

Comments
 (0)