0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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>
This commit is contained in:
glepnir
2025-04-16 19:41:19 +02:00
committed by Christian Brabandt
parent 40daa1358c
commit 1c2b258250
2 changed files with 2 additions and 3 deletions

View File

@@ -2757,9 +2757,6 @@ ins_compl_stop(int c, int prev_mode, int retval)
retval = TRUE; retval = TRUE;
} }
if ((c == Ctrl_W || c == Ctrl_U) && ins_compl_preinsert_effect())
ins_compl_delete();
auto_format(FALSE, TRUE); auto_format(FALSE, TRUE);
// Trigger the CompleteDonePre event to give scripts a chance to // Trigger the CompleteDonePre event to give scripts a chance to

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1310,
/**/ /**/
1309, 1309,
/**/ /**/