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:
committed by
Christian Brabandt
parent
40daa1358c
commit
1c2b258250
@@ -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
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1310,
|
||||
/**/
|
||||
1309,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user