mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 9.1.1827: completion: v9.1.1797 broke Ctrl-Y behaviour
Problem: completion: v9.1.1797 broke Ctrl-Y behaviour
(ddad431, after v9.1.1797)
Solution: Restore correct behaviour (Girish Palya).
closes: #18494
Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
a76ea52a48
commit
f3d0d08907
@@ -853,6 +853,15 @@ is_nearest_active(void)
|
||||
&& !(flags & COT_FUZZY);
|
||||
}
|
||||
|
||||
/*
|
||||
* TRUE if a match is selected (even if it is not inserted).
|
||||
*/
|
||||
int
|
||||
ins_compl_is_match_selected(void)
|
||||
{
|
||||
return compl_shown_match != NULL && !is_first_match(compl_shown_match);
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns TRUE if autocomplete is active and the pre-insert effect targets the
|
||||
* longest prefix.
|
||||
|
||||
Reference in New Issue
Block a user