patch 9.1.1310: completion: redundant check for preinsert effect
Problem: Duplicate check for preinsert effect, particularly for Ctrl_w
and Ctrl_U.
Solution: Remove the specific check for Ctrl_w and Ctrl_U to eliminate
redundancy (glepnir).
closes: #17129
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/insexpand.c b/src/insexpand.c
index 55c0e48..f4449c0 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -2757,9 +2757,6 @@
retval = TRUE;
}
- if ((c == Ctrl_W || c == Ctrl_U) && ins_compl_preinsert_effect())
- ins_compl_delete();
-
auto_format(FALSE, TRUE);
// Trigger the CompleteDonePre event to give scripts a chance to
diff --git a/src/version.c b/src/version.c
index cf49403..bdd9723 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1310,
+/**/
1309,
/**/
1308,