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.
diff --git a/src/insexpand.c b/src/insexpand.c
index 454e2e3..e3c811a 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -2061,17 +2061,12 @@
auto_format(FALSE, TRUE);
- {
- 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;
- }
+ // 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);
ins_compl_free();
compl_started = FALSE;
diff --git a/src/version.c b/src/version.c
index 88fadc7..d9543e1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 152,
+/**/
151,
/**/
150,