Skip to content

Commit 7951701

Browse files
authored
fix: leading spaces in paths on Windows when opening files (#1077)
1 parent 93fcf0a commit 7951701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ end
903903
M.escape_path = function(path)
904904
local escaped_path = vim.fn.fnameescape(path)
905905
if M.is_windows then
906-
escaped_path = escaped_path:gsub("\\", "/")
906+
escaped_path = escaped_path:gsub("\\", "/"):gsub("/ ", " ")
907907
end
908908
return escaped_path
909909
end

0 commit comments

Comments
 (0)