summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-10 18:15:19 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-10 18:15:19 +0100
commit5a093437199001a0d60d8e18e2b9539b99a7757c (patch)
tree4897a21d58c38ac3adc0c3b309381a58f4bbde45 /src/structs.h
parent9b56a57cdae31f7a2c85d440392bf63d3253a158 (diff)
downloadvim-git-5a093437199001a0d60d8e18e2b9539b99a7757c.tar.gz
patch 8.0.1494: no autocmd triggered in Insert mode with visible popup menuv8.0.1494
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.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index abfb73176..3efd6ab3d 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -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. */