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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user