Skip to content

Commit 45c8bd8

Browse files
committed
Fix Winodws path issue by replacing backslashes with forward slashes
1 parent d41b4ca commit 45c8bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function M.escape_special_chars(path)
290290
if path == nil then
291291
return path
292292
end
293-
return M.is_windows and path:gsub("%(", "\\("):gsub("%)", "\\)") or path
293+
return M.is_windows and path:gsub("\\", "/") or path
294294
end
295295

296296
--- Create empty sub-tables if not present

0 commit comments

Comments
 (0)