Mercurial > vim
comparison src/ex_getln.c @ 29173:1ec1ba7e7728 v8.2.5106
patch 8.2.5106: default cmdwin mappings are re-mappable
Commit: https://github.com/vim/vim/commit/44068e97dbd8fc8ebd93113e436a1e37a6bff52c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Jun 16 11:14:55 2022 +0100
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 https://github.com/vim/vim/issues/10580) Use
symbols for the first do_map() argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Jun 2022 12:30:04 +0200 |
parents | ff98d9c228d4 |
children | a5846b82119b |
comparison
equal
deleted
inserted
replaced
29172:d08526b7bcd4 | 29173:1ec1ba7e7728 |
---|---|
4461 histtype = hist_char2type(cmdwin_type); | 4461 histtype = hist_char2type(cmdwin_type); |
4462 if (histtype == HIST_CMD || histtype == HIST_DEBUG) | 4462 if (histtype == HIST_CMD || histtype == HIST_DEBUG) |
4463 { | 4463 { |
4464 if (p_wc == TAB) | 4464 if (p_wc == TAB) |
4465 { | 4465 { |
4466 add_map((char_u *)"<buffer> <Tab> <C-X><C-V>", MODE_INSERT); | 4466 add_map((char_u *)"<buffer> <Tab> <C-X><C-V>", MODE_INSERT, TRUE); |
4467 add_map((char_u *)"<buffer> <Tab> a<C-X><C-V>", MODE_NORMAL); | 4467 add_map((char_u *)"<buffer> <Tab> a<C-X><C-V>", MODE_NORMAL, TRUE); |
4468 } | 4468 } |
4469 set_option_value_give_err((char_u *)"ft", | 4469 set_option_value_give_err((char_u *)"ft", |
4470 0L, (char_u *)"vim", OPT_LOCAL); | 4470 0L, (char_u *)"vim", OPT_LOCAL); |
4471 } | 4471 } |
4472 --curbuf_lock; | 4472 --curbuf_lock; |