vim-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.
da812e282a
This commit is contained in:
Jan Edmund Lazo
2020-01-26 21:16:34 -05:00
parent 88f133c30d
commit e673a0df1a

View File

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