From 900975d30dfa74f325f0f5aa0cef089ae45ee71d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 9 May 2026 07:56:08 +0800 Subject: vim-patch:9.2.0455: 'findfunc' only allows extra info for cmdline completion Problem: 'findfunc' only allows extra info for cmdline completion, not for actually finding files (Maxim Kim, after 9.2.0451). Solution: Handle returning a list of dicts when actually finding files. Also fix crash on NULL string (zeertzjq). fixes: vim/vim#20163 closes: vim/vim#20164 https://github.com/vim/vim/commit/9694ff58fe510bf3906a7b6817429e29d5975987 --- runtime/lua/vim/_meta/options.gen.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/options.gen.lua b/runtime/lua/vim/_meta/options.gen.lua index e2d5b82957..732c8df891 100644 --- a/runtime/lua/vim/_meta/options.gen.lua +++ b/runtime/lua/vim/_meta/options.gen.lua @@ -2625,9 +2625,8 @@ 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, or, in the command-line ---- completion case, whatever a `:command-completion-customlist` function ---- may return. +--- The function should return a List, which is handled similarly to the +--- return value of a `:command-completion-customlist` function. --- --- The function is called only once per `:find` command invocation. --- The function can process all the directories specified in 'path'. -- cgit