mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
getchar: allow <SID> in <Cmd> mapping
This commit is contained in:
@@ -4315,8 +4315,14 @@ char_u * getcmdkeycmd(int promptc, void *cookie, int indent)
|
||||
EMSG(e_cmdmap_repeated);
|
||||
aborted = true;
|
||||
} else if (IS_SPECIAL(c1)) {
|
||||
EMSG2(e_cmdmap_key, get_special_key_name(c1, cmod));
|
||||
aborted = true;
|
||||
if (c1 == K_SNR) {
|
||||
ga_append(&line_ga, (char)K_SPECIAL);
|
||||
ga_append(&line_ga, (char)KS_EXTRA);
|
||||
ga_append(&line_ga, (char)KE_SNR);
|
||||
} else {
|
||||
EMSG2(e_cmdmap_key, get_special_key_name(c1, cmod));
|
||||
aborted = true;
|
||||
}
|
||||
} else {
|
||||
ga_append(&line_ga, (char)c1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user