Skip to content

Commit

Permalink
fix: normalize file paths (#993) (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
miversen33 authored Jul 14, 2023
1 parent a64419d commit 6c470c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neo-tree/command/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ M.setup = function(all_source_names)
end

M.resolve_path = function(path, validate_type)
path = vim.fs.normalize(path)
local expanded = vim.fn.expand(path)
local abs_path = vim.fn.fnamemodify(expanded, ":p")
if validate_type then
Expand Down

0 comments on commit 6c470c3

Please sign in to comment.