mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05: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 https://github.com/vim/vim/commit/de1c7ac432aeade45eaf08527bffc4aedb44a169
This commit is contained in:
1 parent
bcfc22853a
commit
72f4bb9ae8
1 file changed
+1
-3
@@ -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