mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim-patch:9.1.0035: i_CTRL-] triggers InsertCharPre (#27049)
* vim-patch:9.1.0035: i_CTRL-] triggers InsertCharPre
Problem: i_CTRL-] triggers InsertCharPre
Solution: Return if CTRL-] is received. InsertCharPre
is supposed to be only used for chars to be inserted
but i_CTRL-] triggers expansion and is not inserted
into the buffer (altermo)
closes: vim/vim#13853
closes: vim/vim#13864
7d711fe209
This commit is contained in:
@@ -4725,6 +4725,10 @@ static char *do_insert_char_pre(int c)
|
||||
char buf[MB_MAXBYTES + 1];
|
||||
const int save_State = State;
|
||||
|
||||
if (c == Ctrl_RSB) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Return quickly when there is nothing to do.
|
||||
if (!has_event(EVENT_INSERTCHARPRE)) {
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user