vim-patch:9.1.1310: completion: redundant check for preinsert effect (#33505)

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: vim/vim#17129

1c2b258250

Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
zeertzjq
2025-04-17 07:44:12 +08:00
committed by GitHub
parent e3e8dfe99c
commit f9f6dc4262

View File

@ -2419,10 +2419,6 @@ static bool ins_compl_stop(const int c, const int prev_mode, bool retval)
retval = true;
}
if ((c == Ctrl_W || c == Ctrl_U) && ins_compl_preinsert_effect()) {
ins_compl_delete(false);
}
auto_format(false, true);
// Trigger the CompleteDonePre event to give scripts a chance to