neovim

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

commit 857ff5cae936c7caa37949a6ffbc84915955114c
parent b6acf6112bf6c9990956c14940e3bc41a2e27e65
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat, 31 May 2025 18:57:40 +0800

vim-patch:9.1.1313: compile warning about uninitialized value

Problem:  compile warning about uninitialized value
          (Tony Mechelynck, after v9.1.1311)
Solution: initialize variable on declaration

https://github.com/vim/vim/commit/b53d4fb63e0d4d36033d47ec35f2f302931f77ae

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Msrc/nvim/insexpand.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c @@ -1394,7 +1394,7 @@ static int ins_compl_build_pum(void) bool fuzzy_sort = fuzzy_filter && !(cur_cot_flags & kOptCotFlagNosort); compl_T *match_head = NULL, *match_tail = NULL; - int match_count; + int match_count = 0; int cur_source = -1; bool max_matches_found = false; bool is_forward = compl_shows_dir_forward() && !fuzzy_filter;