mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.3517: TextChanged does not trigger after TextChangedI
Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
This commit is contained in:
committed by
Bram Moolenaar
parent
7b5f45be21
commit
db3b44640d
@@ -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);
|
||||
|
Reference in New Issue
Block a user