1
0
forked from aniani/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 #2372, closes #1691)
            Fix that the TextChanged autocommands are not always triggered
            when sourcing a script.
This commit is contained in:
Bram Moolenaar
2018-02-10 18:15:19 +01:00
parent 9b56a57cda
commit 5a09343719
10 changed files with 112 additions and 19 deletions

View File

@@ -1983,6 +1983,15 @@ struct file_buffer
incremented for each change, also for undo */
#define CHANGEDTICK(buf) ((buf)->b_ct_di.di_tv.vval.v_number)
#ifdef FEAT_AUTOCMD
varnumber_T b_last_changedtick; /* b:changedtick when TextChanged or
TextChangedI was last triggered. */
# ifdef FEAT_INS_EXPAND
varnumber_T b_last_changedtick_pum; /* b:changedtick when TextChangedP was
last triggered. */
# endif
#endif
int b_saving; /* Set to TRUE if we are in the middle of
saving the buffer. */