complete: disable folding when completing

Fixes vim/vim#643
This commit is contained in:
Anmol Sethi
2016-03-04 15:06:48 -05:00
parent 890ce792af
commit 0b468fd0cf
4 changed files with 14 additions and 4 deletions

View File

@@ -214,6 +214,10 @@ EXTERN int compl_length INIT(= 0);
* stop looking for matches. */
EXTERN int compl_interrupted INIT(= FALSE);
// Set when doing something for completion that may call edit() recursively,
// which is not allowed. Also used to disable folding during completion
EXTERN int compl_busy INIT(= false);
/* List of flags for method of completion. */
EXTERN int compl_cont_status INIT(= 0);
# define CONT_ADDING 1 /* "normal" or "adding" expansion */