aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-10 16:04:33 +0800
committerGitHub <noreply@github.com>2024-07-10 16:04:33 +0800
commit420822317556968f09179c1e196670762f53a03e (patch)
treedafce1f14b9a109bb5c20133bd414608f87b6b0b
parent17bc5af01bfb0141b0abbe5894dc1eca7eaa684f (diff)
downloadrneovim-420822317556968f09179c1e196670762f53a03e.tar.gz
rneovim-420822317556968f09179c1e196670762f53a03e.tar.bz2
rneovim-420822317556968f09179c1e196670762f53a03e.zip
vim-patch:9.1.{0503,0549} (#29643)
vim-patch:9.1.0503: cannot use fuzzy keyword completion Problem: cannot use fuzzy keyword completion (Maxim Kim) Solution: add the "fuzzycollect" value for the 'completeopt' setting, to gather matches using fuzzy logic (glepnir) fixes: vim/vim#14912 closes: vim/vim#14976 https://github.com/vim/vim/commit/43eef882ff42e673af1e753892801ba20c5d002a vim-patch:9.1.0549: fuzzycollect regex based completion not working as expected Problem: fuzzycollect regex based completion not working as expected Solution: Revert Patch v9.1.0503 (glepnir) closes: vim/vim#15192 https://github.com/vim/vim/commit/600a12d08e7aeb95a6b02382bfee310aef9801dd Co-authored-by: glepnir <glephunter@gmail.com>
-rw-r--r--src/nvim/insexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
index 7a259fd610..46114b2973 100644
--- a/src/nvim/insexpand.c
+++ b/src/nvim/insexpand.c
@@ -3651,8 +3651,8 @@ static compl_T *find_comp_when_fuzzy(void)
const bool is_backward = compl_shows_dir_backward();
compl_T *comp = NULL;
- if (compl_match_array == NULL
- || (is_forward && compl_selected_item == compl_match_arraysize - 1)
+ assert(compl_match_array != NULL);
+ if ((is_forward && compl_selected_item == compl_match_arraysize - 1)
|| (is_backward && compl_selected_item == 0)) {
return compl_first_match != compl_shown_match
? compl_first_match