fix: Pass cwd down correctly for find files

This commit is contained in:
TJ DeVries
2020-09-12 13:47:15 -04:00
parent f2d757bad3
commit 58ab225dca

View File

@@ -329,9 +329,8 @@ builtin.find_files = function(opts)
return
end
local cwd = opts.cwd
if cwd then
cwd = vim.fn.expand(cwd)
if opts.cwd then
opts.cwd = vim.fn.expand(opts.cwd)
end
opts.entry_maker = opts.entry_maker or make_entry.gen_from_file(opts)