aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-28 10:42:18 +0800
committerGitHub <noreply@github.com>2023-10-28 10:42:18 +0800
commitac353e87aecf02315d82a3ad22725d2bc8140f0c (patch)
treec5160c0dfe383fd218c716a16ba2ce7b195e35ae /src/nvim/edit.c
parentf97248db757ee300b7808c3dd67858d489b604fd (diff)
downloadrneovim-ac353e87aecf02315d82a3ad22725d2bc8140f0c.tar.gz
rneovim-ac353e87aecf02315d82a3ad22725d2bc8140f0c.tar.bz2
rneovim-ac353e87aecf02315d82a3ad22725d2bc8140f0c.zip
vim-patch:9.0.2075: TextChangedI may not always trigger (#25808)
Problem: TextChangedI may not always trigger Solution: trigger it in more cases: for insert/ append/change operations, and when opening a new line, fixes: vim/vim#13367 closes: vim/vim#13375 https://github.com/vim/vim/commit/4bca4897a12dfb91b3b27e3083fd5f370bd857d1 Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index a7a98b9557..ef0317b212 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -143,9 +143,6 @@ static void insert_enter(InsertState *s)
update_Insstart_orig = true;
ins_compl_clear(); // clear stuff for CTRL-X mode
- // Reset Changedtick_i, so that TextChangedI will only be triggered for stuff
- // from insert mode
- curbuf->b_last_changedtick_i = buf_get_changedtick(curbuf);
// Trigger InsertEnter autocommands. Do not do this for "r<CR>" or "grx".
if (s->cmdchar != 'r' && s->cmdchar != 'v') {