aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-17 08:41:04 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-02-17 08:47:44 +0800
commitdf666521ac4dd338b59082b1100a4673acde9e64 (patch)
tree150c290ea57620e595dcc00bb260b31fc6fb07d0
parentdea311b33d7be6c76ba2a48e604a112ae1dc61d6 (diff)
downloadrneovim-df666521ac4dd338b59082b1100a4673acde9e64.tar.gz
rneovim-df666521ac4dd338b59082b1100a4673acde9e64.tar.bz2
rneovim-df666521ac4dd338b59082b1100a4673acde9e64.zip
fix(mappings): fix check for cpo-B inverted in completion
-rw-r--r--src/nvim/mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c
index c740fb41bc..0b2cf6ea47 100644
--- a/src/nvim/mapping.c
+++ b/src/nvim/mapping.c
@@ -1167,7 +1167,7 @@ static char *translate_mapping(char_u *str, int cpo_flags)
garray_T ga;
ga_init(&ga, 1, 40);
- bool cpo_bslash = !(cpo_flags&FLAG_CPO_BSLASH);
+ bool cpo_bslash = cpo_flags & FLAG_CPO_BSLASH;
for (; *str; str++) {
int c = *str;