summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2021-10-16 11:58:55 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-16 11:58:55 +0100
commitdb3b44640d69ab27270691a3cab8d83cc93a0861 (patch)
tree7ed9b25f311e2b6b1790cb0903314493f5e460c2 /src/buffer.c
parent7b5f45be2197403d631b5a3d633f6a20afdf806e (diff)
patch 8.2.3517: TextChanged does not trigger after TextChangedIv8.2.3517
Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 56c1bf2f40..86dc88687a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -327,6 +327,7 @@ open_buffer(
// Set last_changedtick to avoid triggering a TextChanged autocommand right
// after it was added.
curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
+ curbuf->b_last_changedtick_i = CHANGEDTICK(curbuf);
curbuf->b_last_changedtick_pum = CHANGEDTICK(curbuf);
// require "!" to overwrite the file, because it wasn't read completely