mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
vim-patch:9.1.1471: completion: inconsistent ordering with CTRL-P (#34571)
Problem: completion: inconsistent ordering with CTRL-P
(zeertzjq)
Solution: reset compl_curr_match when using CTRL-P (Girish Palya)
fixes: vim/vim#17425
closes: vim/vim#17434
5fbe72edda
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -607,7 +607,7 @@ static int insert_execute(VimState *state, int key)
|
||||
&& (s->c == CAR || s->c == K_KENTER || s->c == NL)))
|
||||
&& stop_arrow() == OK) {
|
||||
ins_compl_delete(false);
|
||||
ins_compl_insert(false, false);
|
||||
ins_compl_insert(false);
|
||||
} else if (ascii_iswhite_nl_or_nul(s->c) && ins_compl_preinsert_effect()) {
|
||||
// Delete preinserted text when typing special chars
|
||||
ins_compl_delete(false);
|
||||
|
Reference in New Issue
Block a user