mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.1444: Unused assignment in set_fuzzy_score()
Problem: Unused assignment in set_fuzzy_score() (after 9.1.1441).
Solution: Remove it (zeertzjq).
closes: vim/vim#17472
de1c7ac432
This commit is contained in:
@@ -1339,10 +1339,8 @@ static int cp_compare_nearest(const void *a, const void *b)
|
||||
/// Set fuzzy score.
|
||||
static void set_fuzzy_score(void)
|
||||
{
|
||||
compl_T *comp = compl_first_match->cp_prev;
|
||||
|
||||
if (compl_leader.data != NULL && compl_leader.size > 0) {
|
||||
comp = compl_first_match;
|
||||
compl_T *comp = compl_first_match;
|
||||
do {
|
||||
comp->cp_score = fuzzy_match_str(comp->cp_str.data, compl_leader.data);
|
||||
comp = comp->cp_next;
|
||||
|
Reference in New Issue
Block a user