vim-patch:9.2.0451: 'findfunc' can't return extra info for cmdline completion

Problem:  'findfunc' can't return extra info for cmdline completion
          (Maxim Kim).
Solution: Handle 'findfunc' return value in cmdline completion like that
          of "customlist" functions (zeertzjq).

fixes:  vim/vim#20155
closes: vim/vim#20158

58124789aa
This commit is contained in:
zeertzjq
2026-05-09 07:39:00 +08:00
parent b7d8a41d91
commit bf173c3e88
7 changed files with 143 additions and 22 deletions

View File

@@ -2625,7 +2625,9 @@ vim.go.fcs = vim.go.fillchars
--- `String` and is the `:find` command argument. The second argument is
--- a `Boolean` and is set to `v:true` when the function is called to get
--- a List of command-line completion matches for the `:find` command.
--- The function should return a List of strings.
--- The function should return a List of strings, or, in the command-line
--- completion case, whatever a `:command-completion-customlist` function
--- may return.
---
--- The function is called only once per `:find` command invocation.
--- The function can process all the directories specified in 'path'.