]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1310: completion: redundant check for preinsert effect v9.1.1310
authorglepnir <glephunter@gmail.com>
Wed, 16 Apr 2025 17:41:19 +0000 (19:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 16 Apr 2025 17:41:19 +0000 (19:41 +0200)
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>
src/insexpand.c
src/version.c

index 55c0e483e28b080c8b300ad017d73c8fdb920ff8..f4449c0bfe954bc90ef08d25e9eef3930e1c906f 100644 (file)
@@ -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
index cf494034fc35a30c1af463ae5755dc1861ebc80a..bdd972311975aaee66069066f4bdefbc0d4eddb4 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1310,
 /**/
     1309,
 /**/