fix(mappings): make "<" escaping in completion match Vim

This commit is contained in:
zeertzjq
2023-02-18 06:52:56 +08:00
parent f905ab0450
commit 75dab3cf07
3 changed files with 4 additions and 4 deletions

View File

@@ -1194,7 +1194,7 @@ static char *translate_mapping(char_u *str, int cpo_flags)
}
if (c == ' ' || c == '\t' || c == Ctrl_J || c == Ctrl_V
|| (c == '\\' && !cpo_bslash)) {
|| c == '<' || (c == '\\' && !cpo_bslash)) {
ga_append(&ga, cpo_bslash ? Ctrl_V : '\\');
}