Skip to content

Commit 2b110a6

Browse files
committed
add is_windows feature flag when normalizing path
1 parent 9176eab commit 2b110a6

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
@@ -80,7 +80,7 @@ function M.path_relative(path, relative_to)
8080
end
8181

8282
local norm_path = path
83-
if has_parentheses_and_brackets(path) then
83+
if M.is_windows and has_parentheses_and_brackets(path) then
8484
norm_path = path:gsub("/", "\\")
8585
end
8686

0 commit comments

Comments
 (0)