aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
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/buffer_defs.h
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/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 53edae58a5..807baf02c1 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -484,6 +484,11 @@ struct file_buffer {
#define b_changedtick changedtick_di.di_tv.vval.v_number
ChangedtickDictItem changedtick_di; // b:changedtick dictionary item.
+ varnumber_T b_last_changedtick; // b:changedtick when TextChanged or
+ // TextChangedI was last triggered.
+ varnumber_T b_last_changedtick_pum; // b:changedtick when TextChangedP was
+ // last triggered.
+
bool b_saving; /* Set to true if we are in the middle of
saving the buffer. */