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 return
end end
local cwd = opts.cwd if opts.cwd then
if cwd then opts.cwd = vim.fn.expand(opts.cwd)
cwd = vim.fn.expand(cwd)
end end
opts.entry_maker = opts.entry_maker or make_entry.gen_from_file(opts) opts.entry_maker = opts.entry_maker or make_entry.gen_from_file(opts)