diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-03 18:04:05 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-03 18:05:38 +0100 |
commit | 0c989e4a3ae50085aa8c6bed5d6701760191bc1d (patch) | |
tree | cb7f1e541840db281e2b49fb93a9178cfbcf8c31 /src | |
parent | 609370392a7b88dc2db38d01577509575216ff36 (diff) |
patch 9.1.0073: Looping over modifier_keys_table unnecessarilyv9.1.0073
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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/misc2.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/misc2.c b/src/misc2.c index 57ee287a4b..611e021ccb 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1130,11 +1130,7 @@ simplify_key(int key, int *modifiers) int key0; int key1; - if (!(*modifiers & (MOD_MASK_SHIFT | MOD_MASK_CTRL | MOD_MASK_ALT -#ifdef FEAT_GUI_GTK - | MOD_MASK_CMD -#endif - ))) + if (!(*modifiers & (MOD_MASK_SHIFT | MOD_MASK_CTRL))) return key; // TAB is a special case diff --git a/src/version.c b/src/version.c index 653533c3dc..0dfa2d8e32 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 73, +/**/ 72, /**/ 71, |