mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.4001: insert complete code uses global variables
Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470)
This commit is contained in:
committed by
Bram Moolenaar
parent
fcd1635a46
commit
d94fbfc74a
@@ -1280,7 +1280,7 @@ doESCkey:
|
||||
// but it is under other ^X modes
|
||||
if (*curbuf->b_p_cpt == NUL
|
||||
&& (ctrl_x_mode_normal() || ctrl_x_mode_whole_line())
|
||||
&& !(compl_cont_status & CONT_LOCAL))
|
||||
&& !compl_status_local())
|
||||
goto normalchar;
|
||||
|
||||
docomplete:
|
||||
@@ -1289,7 +1289,7 @@ docomplete:
|
||||
disable_fold_update++; // don't redraw folds here
|
||||
#endif
|
||||
if (ins_complete(c, TRUE) == FAIL)
|
||||
compl_cont_status = 0;
|
||||
compl_status_clear();
|
||||
#ifdef FEAT_FOLDING
|
||||
disable_fold_update--;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user