summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-16 11:14:55 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-16 11:14:55 +0100
commit44068e97dbd8fc8ebd93113e436a1e37a6bff52c (patch)
tree716b248e729eaa9ce8a2795192d3863ca2e5c462 /src/ex_getln.c
parent83497f875881973df772cc4cc593766345df6c4a (diff)
patch 8.2.5106: default cmdwin mappings are re-mappablev8.2.5106
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.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 8be971a885..af4dc19be1 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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);