0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1901: the +insert_expand feature is not always available

Problem:    The +insert_expand feature is not always available.
Solution:   Graduate the +insert_expand feature.
This commit is contained in:
Bram Moolenaar
2019-08-21 14:37:09 +02:00
parent d933c82ff4
commit e2c453d38f
34 changed files with 85 additions and 383 deletions

View File

@@ -2278,10 +2278,8 @@ struct file_buffer
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
int b_saving; // Set to TRUE if we are in the middle of
// saving the buffer.
@@ -2376,9 +2374,7 @@ struct file_buffer
linenr_T b_u_line_lnum; // line number of line in u_line
colnr_T b_u_line_colnr; // optional column number
#ifdef FEAT_INS_EXPAND
int b_scanned; // ^N/^P have scanned this buffer
#endif
// flags for use of ":lmap" and IM control
long b_p_iminsert; // input mode for insert
@@ -2436,9 +2432,7 @@ struct file_buffer
#ifdef FEAT_FOLDING
char_u *b_p_cms; // 'commentstring'
#endif
#ifdef FEAT_INS_EXPAND
char_u *b_p_cpt; // 'complete'
#endif
#ifdef BACKSLASH_IN_FILENAME
char_u *b_p_csl; // 'completeslash'
#endif
@@ -2545,10 +2539,8 @@ struct file_buffer
char_u *b_p_tags; // 'tags' local value
char_u *b_p_tc; // 'tagcase' local value
unsigned b_tc_flags; // flags for 'tagcase'
#ifdef FEAT_INS_EXPAND
char_u *b_p_dict; // 'dictionary' local value
char_u *b_p_tsr; // 'thesaurus' local value
#endif
long b_p_ul; // 'undolevels' local value
#ifdef FEAT_PERSISTENT_UNDO
int b_p_udf; // 'undofile'