Skip to content

Commit

Permalink
fix(file_bowser): correct path separators on mingw (#168)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
archiif authored Aug 1, 2022
1 parent c30fcb6 commit 4272c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/file_browser/finders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fb_finders.browse_files = function(opts)
local parent_path = Path:new(opts.path):parent():absolute()
local needs_sync = opts.grouped or opts.select_buffer
if has_fd and not needs_sync then
local args = { "-a" }
local args = { "-a", "--path-separator=" .. os_sep }
if opts.hidden then
table.insert(args, "-H")
end
Expand Down

0 comments on commit 4272c52

Please sign in to comment.