0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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

@@ -4463,8 +4463,8 @@ open_cmdwin(void)
{
if (p_wc == TAB)
{
add_map((char_u *)"<buffer> <Tab> <C-X><C-V>", MODE_INSERT);
add_map((char_u *)"<buffer> <Tab> a<C-X><C-V>", MODE_NORMAL);
add_map((char_u *)"<buffer> <Tab> <C-X><C-V>", MODE_INSERT, TRUE);
add_map((char_u *)"<buffer> <Tab> a<C-X><C-V>", MODE_NORMAL, TRUE);
}
set_option_value_give_err((char_u *)"ft",
0L, (char_u *)"vim", OPT_LOCAL);