Skip to content

Commit 4272c52

Browse files
authored
fix(file_bowser): correct path separators on mingw (#168)
fd on Windows outputs file paths with forward slashes when run under mingw. This ensures that fd always outputs backslashes on Windows systems. This should have no impact on other OSes. Fix: #167
1 parent c30fcb6 commit 4272c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/telescope/_extensions/file_browser/finders.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fb_finders.browse_files = function(opts)
3232
local parent_path = Path:new(opts.path):parent():absolute()
3333
local needs_sync = opts.grouped or opts.select_buffer
3434
if has_fd and not needs_sync then
35-
local args = { "-a" }
35+
local args = { "-a", "--path-separator=" .. os_sep }
3636
if opts.hidden then
3737
table.insert(args, "-H")
3838
end

0 commit comments

Comments
 (0)