diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-27 18:51:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 18:51:40 +0800 |
commit | b65f4151d9e52a8521c0682a817c4dab9690e1e7 (patch) | |
tree | e76592f65135cf3b18e9eca05dfe71cd249b20ab /src/nvim/buffer.c | |
parent | dfa8b582a64aa22d3c57261bfcdc970b26cb58f3 (diff) | |
download | rneovim-b65f4151d9e52a8521c0682a817c4dab9690e1e7.tar.gz rneovim-b65f4151d9e52a8521c0682a817c4dab9690e1e7.tar.bz2 rneovim-b65f4151d9e52a8521c0682a817c4dab9690e1e7.zip |
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)
https://github.com/vim/vim/commit/db3b44640d69ab27270691a3cab8d83cc93a0861
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 7a3e65e10e..15fbf7df7b 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -354,6 +354,7 @@ int open_buffer(int read_stdin, exarg_T *eap, int flags_arg) // Set last_changedtick to avoid triggering a TextChanged autocommand right // after it was added. curbuf->b_last_changedtick = buf_get_changedtick(curbuf); + curbuf->b_last_changedtick_i = buf_get_changedtick(curbuf); curbuf->b_last_changedtick_pum = buf_get_changedtick(curbuf); // require "!" to overwrite the file, because it wasn't read completely |