mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 9.1.1776: completion: "adding" expansion doesn't work with cfc=keyword
Problem: "adding" expansion doesn't work with cfc=keyword.
Solution: Remove incorrect assignment to compl_cont_status. Don't use
fuzzy collection in "adding" status (zeertzjq).
related: neovim/neovim#35842
closes: #18351
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
e39d35a44d
commit
e19a882ffc
@@ -5005,8 +5005,9 @@ get_next_default_completion(ins_compl_next_state_T *st, pos_T *start_pos)
|
||||
int looped_around = FALSE;
|
||||
char_u *ptr = NULL;
|
||||
int len = 0;
|
||||
int in_fuzzy_collect = (cfc_has_mode() && compl_length > 0)
|
||||
|| ((get_cot_flags() & COT_FUZZY) && compl_autocomplete);
|
||||
int in_fuzzy_collect = !compl_status_adding()
|
||||
&& ((cfc_has_mode() && compl_length > 0)
|
||||
|| ((get_cot_flags() & COT_FUZZY) && compl_autocomplete));
|
||||
char_u *leader = ins_compl_leader();
|
||||
int score = FUZZY_SCORE_NONE;
|
||||
int in_curbuf = st->ins_buf == curbuf;
|
||||
@@ -7114,11 +7115,6 @@ ins_compl_start(void)
|
||||
compl_col = curwin->w_cursor.col;
|
||||
compl_lnum = curwin->w_cursor.lnum;
|
||||
}
|
||||
else if (ctrl_x_mode_normal() && cfc_has_mode())
|
||||
{
|
||||
compl_startpos = curwin->w_cursor;
|
||||
compl_cont_status &= CONT_S_IPOS;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user