summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-03-22 16:06:31 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-22 16:06:31 +0000
commite7dd0fa2c61fe71f12c72b0dcb7bb6415eb048fb (patch)
tree5f9d0bb515c76a3bd9b3939b59fa10f024e2faa5 /runtime
parent35dc17634dd6da5b90bd1b0160c4ed9e394f4b87 (diff)
patch 8.2.4608: getcompletion() does not work when 'wildoptions' has "fuzzy"v8.2.4608
Problem: getcompletion() does not work properly when 'wildoptions contains "fuzzy". Solution: Do not use addstar(). (Yegappan Lakshmanan, closes #9992, closes #9986)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 062ccc345d..602d9098e6 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -3273,6 +3273,10 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
is applied to filter the results. Otherwise all the matches
are returned. The 'wildignorecase' option always applies.
+ If the 'wildoptions' option contains 'fuzzy', then fuzzy
+ matching is used to get the completion matches. Otherwise
+ regular expression matching is used.
+
If {type} is "cmdline", then the |cmdline-completion| result is
returned. For example, to complete the possible values after
a ":call" command: >