mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 12:08:33 +00:00
vim-patch:9.1.1069: preinsert text completions not deleted with <C-W>/<C-U> (#32296)
Problem: preinsert text completions not deleted with <C-W>/<C-U>
(ddad431, after v9.1.1059)
Solution: handle <C-W> or <C-U> specifically and clear the completion
(glepnir)
fixes: vim/vim#16557
closes: vim/vim#16565
001c26cd61
This commit is contained in:
@@ -2228,6 +2228,10 @@ 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