Skip to content

Commit 8646e46

Browse files
committed
fix(folder_browser): cwd_to_path wouldnt work with plenary.scandir
1 parent 2429ecf commit 8646e46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/telescope/_extensions/file_browser/finders.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ fb_finders.browse_folders = function(opts)
100100
cwd = cwd,
101101
}
102102
else
103-
local data = scan.scan_dir(opts.cwd, {
103+
local data = scan.scan_dir(cwd, {
104104
hidden = opts.hidden,
105105
only_dirs = true,
106106
respect_gitignore = opts.respect_gitignore,
107107
})
108-
table.insert(data, 1, opts.cwd)
108+
table.insert(data, 1, cwd)
109109
return finders.new_table { results = data, entry_maker = entry_maker }
110110
end
111111
end

0 commit comments

Comments
 (0)