mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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#171291c2b258250
Co-authored-by: glepnir <glephunter@gmail.com> (cherry picked from commitf9f6dc4262
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
2435d72283
commit
12298be0fe
@@ -2261,10 +2261,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
|
||||
|
Reference in New Issue
Block a user