Skip to content

Commit

Permalink
vim-patch:26e4b00: runtime(doc): Revert outdated comment in completeo…
Browse files Browse the repository at this point in the history
…pt's fuzzy documentation

Originally, `:set completeopt+=fuzzy` did not affect how the candidate
list is collected in default keyword completion. A comment was added to
documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the
fuzzy behavior to now change the candidate collection behavior as well
so the clarification in docs is now wrong. Remove them here.

closes: vim/vim#15656

vim/vim@26e4b00

Co-authored-by: Yee Cheng Chin <[email protected]>
  • Loading branch information
zeertzjq and ychin committed Oct 15, 2024
1 parent 1a4b486 commit 88cb457
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions runtime/doc/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1578,10 +1578,7 @@ A jump table for the options with a short description can be found at |Q_op|.
fuzzy Enable |fuzzy-matching| for completion candidates. This
allows for more flexible and intuitive matching, where
characters can be skipped and matches can be found even
if the exact sequence is not typed. Only makes a
difference how completion candidates are reduced from the
list of alternatives, but not how the candidates are
collected (using different completion types).
if the exact sequence is not typed.

*'completeslash'* *'csl'*
'completeslash' 'csl' string (default "")
Expand Down
5 changes: 1 addition & 4 deletions runtime/lua/vim/_meta/options.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/nvim/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1490,10 +1490,7 @@ return {
fuzzy Enable |fuzzy-matching| for completion candidates. This
allows for more flexible and intuitive matching, where
characters can be skipped and matches can be found even
if the exact sequence is not typed. Only makes a
difference how completion candidates are reduced from the
list of alternatives, but not how the candidates are
collected (using different completion types).
if the exact sequence is not typed.
]=],
expand_cb = 'expand_set_completeopt',
full_name = 'completeopt',
Expand Down

0 comments on commit 88cb457

Please sign in to comment.