aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authoraltermo <107814000+altermo@users.noreply.github.com>2024-01-17 00:35:32 +0100
committerGitHub <noreply@github.com>2024-01-17 07:35:32 +0800
commitda541c0af1ef6589548140ebce133ad3fecf6d42 (patch)
tree17660f22e15b5964d96ead4d093b048308cca763 /src/nvim/edit.c
parentaa5819f5a5e634904ea1ca4d25700c0cbbba5ccc (diff)
downloadrneovim-da541c0af1ef6589548140ebce133ad3fecf6d42.tar.gz
rneovim-da541c0af1ef6589548140ebce133ad3fecf6d42.tar.bz2
rneovim-da541c0af1ef6589548140ebce133ad3fecf6d42.zip
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 https://github.com/vim/vim/commit/7d711fe2092d0438d2df5054df735ec34926e2bc
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 470d57890a..6f05ba5905 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -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;