From df666521ac4dd338b59082b1100a4673acde9e64 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 17 Feb 2023 08:41:04 +0800 Subject: [PATCH] fix(mappings): fix check for cpo-B inverted in completion --- src/nvim/mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;