Skip to content

Commit da812e2

Browse files
committed
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.
1 parent 978d170 commit da812e2

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

src/insexpand.c

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,17 +2061,12 @@ ins_compl_prep(int c)
20612061

20622062
auto_format(FALSE, TRUE);
20632063

2064-
{
2065-
int new_mode = ctrl_x_mode;
2066-
2067-
// Trigger the CompleteDone event to give scripts a chance to
2068-
// act upon the completion. Do this before clearing the info,
2069-
// and restore ctrl_x_mode, so that complete_info() can be
2070-
// used.
2071-
ctrl_x_mode = prev_mode;
2072-
ins_apply_autocmds(EVENT_COMPLETEDONE);
2073-
ctrl_x_mode = new_mode;
2074-
}
2064+
// Trigger the CompleteDone event to give scripts a chance to
2065+
// act upon the completion. Do this before clearing the info,
2066+
// and restore ctrl_x_mode, so that complete_info() can be
2067+
// used.
2068+
ctrl_x_mode = prev_mode;
2069+
ins_apply_autocmds(EVENT_COMPLETEDONE);
20752070

20762071
ins_compl_free();
20772072
compl_started = FALSE;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
152,
745747
/**/
746748
151,
747749
/**/

0 commit comments

Comments
 (0)