mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
vim-patch:9.1.1827: completion: v9.1.1797 broke Ctrl-Y behaviour (#36040)
Problem: completion: v9.1.1797 broke Ctrl-Y behaviour
(ddad431, after v9.1.1797)
Solution: Restore correct behaviour (Girish Palya).
closes: vim/vim#18494
f3d0d08907
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -607,10 +607,12 @@ 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, !ins_compl_has_preinsert());
|
||||
if (ins_compl_preinsert_longest()) {
|
||||
if (ins_compl_preinsert_longest() && !ins_compl_is_match_selected()) {
|
||||
ins_compl_insert(false, true);
|
||||
ins_compl_init_get_longest();
|
||||
return 1;
|
||||
} else {
|
||||
ins_compl_insert(false, false);
|
||||
}
|
||||
} else if (ascii_iswhite_nl_or_nul(s->c) && ins_compl_preinsert_effect()) {
|
||||
// Delete preinserted text when typing special chars
|
||||
|
Reference in New Issue
Block a user