neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 72f4bb9ae8618d8595a2ce292abfb2161eee9576
parent bcfc22853af17086f5d75c7a2e59cb648c572613
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 10 Jun 2025 07:27:32 +0800

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

Diffstat:
Msrc/nvim/insexpand.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c @@ -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;