aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2018-02-11 22:37:14 +0900
committerchemzqm <chemzqm@gmail.com>2018-05-14 19:14:25 +0800
commit021c5875c13e0c4a5bab67e2e2ac50c4be653ad6 (patch)
treec109ca4837ca488fea961de395e42950e1756d05 /src/nvim/fileio.c
parent36b2e3f743aaeb27531e67079d1a20bb4ac75e35 (diff)
downloadrneovim-021c5875c13e0c4a5bab67e2e2ac50c4be653ad6.tar.gz
rneovim-021c5875c13e0c4a5bab67e2e2ac50c4be653ad6.tar.bz2
rneovim-021c5875c13e0c4a5bab67e2e2ac50c4be653ad6.zip
vim-patch:8.0.1494: no autocmd triggered in Insert mode with visible popup menu
Problem: No autocmd triggered in Insert mode with visible popup menu. Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt, closes vim/vim#2372, closes vim/vim#1691) Fix that the TextChanged autocommands are not always triggered when sourcing a script. https://github.com/vim/vim/commit/5a093437199001a0d60d8e18e2b9539b99a7757c
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index efeee1ba2b..102af1dba9 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -3571,9 +3571,8 @@ restore_backup:
unchanged(buf, TRUE);
/* buf->b_changedtick is always incremented in unchanged() but that
* should not trigger a TextChanged event. */
- if (last_changedtick + 1 == buf->b_changedtick
- && last_changedtick_buf == buf) {
- last_changedtick = buf->b_changedtick;
+ if (buf->b_last_changedtick + 1 == buf->b_changedtick) {
+ buf->b_last_changedtick = buf->b_changedtick;
}
u_unchanged(buf);
u_update_save_nr(buf);