Skip to content

revert: patch 9.1.0503 - #15192

Closed
glepnir wants to merge 1 commit into
vim:masterfrom
glepnir:revert_910503
Closed

glepnir wants to merge 1 commit into
vim:masterfrom
glepnir:revert_910503

Conversation

@glepnir

@glepnir glepnir commented Jul 9, 2024

Copy link
Copy Markdown
Member

fuzzy can handle keyword completion as well. so fuzzycollect is no longer needed.

Comment thread runtime/doc/version9.txt
Comment thread runtime/doc/version9.txt Outdated
@chrisbra

chrisbra commented Jul 9, 2024

Copy link
Copy Markdown
Member

thanks!

RestorerZ pushed a commit to RestorerZ/fork_vim-orig that referenced this pull request Jul 9, 2024
…pected

Problem:  fuzzycollect regex based completion not working as expected
Solution: Revert Patch v9.1.0503 (glepnir)

closes: vim#15192

Signed-off-by: glepnir <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
@zeertzjq

zeertzjq commented Jul 9, 2024

Copy link
Copy Markdown
Member

This change from patch 9.1.0503 hasn't been reverted:

diff --git a/src/insexpand.c b/src/insexpand.c
index c673df927..78fea5127 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -4100,8 +4100,7 @@ find_comp_when_fuzzy(void)
     int		is_backward = compl_shows_dir_backward();
     compl_T	*comp = NULL;
 
-    if (compl_match_array == NULL ||
-	    (is_forward && compl_selected_item == compl_match_arraysize - 1)
+    if ((is_forward && compl_selected_item == compl_match_arraysize - 1)
 	    || (is_backward && compl_selected_item == 0))
 	return compl_first_match;
 

Does it need to be?

@glepnir

glepnir commented Jul 10, 2024

Copy link
Copy Markdown
Member Author

find_next_completion_match has checked the array is not NULL so there no need revert.

zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Jul 10, 2024
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

vim/vim@43eef88

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

vim/vim@600a12d

Co-authored-by: glepnir <[email protected]>
zeertzjq added a commit to neovim/neovim that referenced this pull request Jul 10, 2024
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

vim/vim@43eef88

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

vim/vim@600a12d

Co-authored-by: glepnir <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants