mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
vim-patch:8.2.3517: TextChanged does not trigger after TextChangedI (#25384)
Problem: TextChanged does not trigger after TextChangedI.
Solution: Store the tick separately for TextChangedI. (Christian Brabandt,
closes vim/vim#8968, closes vim/vim#8932)
db3b44640d
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -1797,8 +1797,8 @@ restore_backup:
|
||||
unchanged(buf, true, false);
|
||||
const varnumber_T changedtick = buf_get_changedtick(buf);
|
||||
if (buf->b_last_changedtick + 1 == changedtick) {
|
||||
// b:changedtick 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.
|
||||
buf->b_last_changedtick = changedtick;
|
||||
}
|
||||
u_unchanged(buf);
|
||||
|
Reference in New Issue
Block a user