From: glepnir Date: Wed, 16 Apr 2025 17:41:19 +0000 (+0200) Subject: patch 9.1.1310: completion: redundant check for preinsert effect X-Git-Tag: v9.1.1310^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c2b25825037bf83862f7af71ce9177cf949daca;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/insexpand.c b/src/insexpand.c index 55c0e483e2..f4449c0bfe 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -2757,9 +2757,6 @@ ins_compl_stop(int c, int prev_mode, int retval) 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 cf494034fc..bdd9723119 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1310, /**/ 1309, /**/