comparison src/structs.h @ 13240:5ed6e4a25925 v8.0.1494

patch 8.0.1494: no autocmd triggered in Insert mode with visible popup menu commit https://github.com/vim/vim/commit/5a093437199001a0d60d8e18e2b9539b99a7757c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 10 18:15:19 2018 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2018 18:30:06 +0100
parents e0dcfd3dbb52
children 69278c25429d
comparison
equal deleted inserted replaced
13239:cb07abe792ae 13240:5ed6e4a25925
1981 dictitem16_T b_ct_di; /* holds the b:changedtick value in 1981 dictitem16_T b_ct_di; /* holds the b:changedtick value in
1982 b_ct_di.di_tv.vval.v_number; 1982 b_ct_di.di_tv.vval.v_number;
1983 incremented for each change, also for undo */ 1983 incremented for each change, also for undo */
1984 #define CHANGEDTICK(buf) ((buf)->b_ct_di.di_tv.vval.v_number) 1984 #define CHANGEDTICK(buf) ((buf)->b_ct_di.di_tv.vval.v_number)
1985 1985
1986 #ifdef FEAT_AUTOCMD
1987 varnumber_T b_last_changedtick; /* b:changedtick when TextChanged or
1988 TextChangedI was last triggered. */
1989 # ifdef FEAT_INS_EXPAND
1990 varnumber_T b_last_changedtick_pum; /* b:changedtick when TextChangedP was
1991 last triggered. */
1992 # endif
1993 #endif
1994
1986 int b_saving; /* Set to TRUE if we are in the middle of 1995 int b_saving; /* Set to TRUE if we are in the middle of
1987 saving the buffer. */ 1996 saving the buffer. */
1988 1997
1989 /* 1998 /*
1990 * Changes to a buffer require updating of the display. To minimize the 1999 * Changes to a buffer require updating of the display. To minimize the