patch 8.2.0152: restoring ctrl_x_mode is not needed

Problem:    Restoring ctrl_x_mode is not needed.
Solution:   Remove restoring the old value, it's changed again soon.
This commit is contained in:
Bram Moolenaar
2020-01-26 18:35:31 +01:00
parent 978d170bdc
commit da812e282a
2 changed files with 8 additions and 11 deletions

View File

@ -2061,17 +2061,12 @@ ins_compl_prep(int c)
auto_format(FALSE, TRUE); auto_format(FALSE, TRUE);
{ // Trigger the CompleteDone event to give scripts a chance to
int new_mode = ctrl_x_mode; // act upon the completion. Do this before clearing the info,
// and restore ctrl_x_mode, so that complete_info() can be
// Trigger the CompleteDone event to give scripts a chance to // used.
// act upon the completion. Do this before clearing the info, ctrl_x_mode = prev_mode;
// and restore ctrl_x_mode, so that complete_info() can be ins_apply_autocmds(EVENT_COMPLETEDONE);
// used.
ctrl_x_mode = prev_mode;
ins_apply_autocmds(EVENT_COMPLETEDONE);
ctrl_x_mode = new_mode;
}
ins_compl_free(); ins_compl_free();
compl_started = FALSE; compl_started = FALSE;

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
152,
/**/ /**/
151, 151,
/**/ /**/