diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-12 13:47:15 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-12 13:47:15 -0400 |
| commit | 58ab225dca31607c4a2e1a5fbebdb26b5be1d5e1 (patch) | |
| tree | 10dccc44f17280178f16e013a0840a80c66f0928 /lua | |
| parent | f2d757bad3f6f1d963440f6b9474df1b9d92f050 (diff) | |
fix: Pass cwd down correctly for find files
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 891b646..c4b7cb2 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -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) |
