0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.5106: default cmdwin mappings are re-mappable

Problem:    Default cmdwin mappings are re-mappable.
Solution:   Make the default mappings not re-mappable. (closes #10580)  Use
            symbols for the first do_map() argument.
This commit is contained in:
zeertzjq
2022-06-16 11:14:55 +01:00
committed by Bram Moolenaar
parent 83497f8758
commit 44068e97db
7 changed files with 37 additions and 25 deletions

View File

@@ -2323,7 +2323,7 @@ special_keys(char_u *args)
strcpy(&keybuf[i], tok);
vim_snprintf(cmdbuf, sizeof(cmdbuf),
"<silent><%s> :nbkey %s<CR>", keybuf, keybuf);
do_map(0, (char_u *)cmdbuf, MODE_NORMAL, FALSE);
do_map(MAPTYPE_MAP, (char_u *)cmdbuf, MODE_NORMAL, FALSE);
}
tok = strtok(NULL, " ");
}