summaryrefslogtreecommitdiff
path: root/src/bufwrite.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/bufwrite.c
parent7b5f45be2197403d631b5a3d633f6a20afdf806e (diff)
downloadvim-git-db3b44640d69ab27270691a3cab8d83cc93a0861.tar.gz
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/bufwrite.c')
-rw-r--r--src/bufwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bufwrite.c b/src/bufwrite.c
index 772d70767..0313e0ce3 100644
--- a/src/bufwrite.c
+++ b/src/bufwrite.c
@@ -2422,8 +2422,8 @@ restore_backup:
&& (overwriting || vim_strchr(p_cpo, CPO_PLUS) != NULL))
{
unchanged(buf, TRUE, FALSE);
- // b:changedtick is may be incremented in unchanged() but that
- // should not trigger a TextChanged event.
+ // b:changedtick may be incremented in unchanged() but that should not
+ // trigger a TextChanged event.
if (buf->b_last_changedtick + 1 == CHANGEDTICK(buf))
buf->b_last_changedtick = CHANGEDTICK(buf);
u_unchanged(buf);