aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-26 15:05:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-29 15:51:04 +0800
commitabe91e1efec84c47c03a69ab8a998bb16f628084 (patch)
tree59814a0125ad7ece7476d9473e25e867e8099339 /src/nvim/option.c
parent6832b626ea1b3413c445dfc23f4d921335dfeaf3 (diff)
downloadrneovim-abe91e1efec84c47c03a69ab8a998bb16f628084.tar.gz
rneovim-abe91e1efec84c47c03a69ab8a998bb16f628084.tar.bz2
rneovim-abe91e1efec84c47c03a69ab8a998bb16f628084.zip
vim-patch:8.2.0855: GUI tests fail because the test doesn't use a modifier
Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier. https://github.com/vim/vim/commit/ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf Change macros to enums to use them in unit tests.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 79231385ad..068b779eb6 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5222,7 +5222,8 @@ int find_key_option_len(const char_u *arg_arg, size_t len, bool has_lt)
} else if (has_lt) {
arg--; // put arg at the '<'
modifiers = 0;
- key = find_special_key(&arg, len + 1, &modifiers, true, true, false, true, NULL);
+ key = find_special_key(&arg, len + 1, &modifiers,
+ FSK_KEYCODE | FSK_KEEP_X_KEY | FSK_SIMPLIFY, NULL);
if (modifiers) { // can't handle modifiers here
key = 0;
}