fix(marks): preserve uri filenames with path_expand (#3029)

(cherry picked from commit d26b666b45)
This commit is contained in:
gzbfgjf2
2024-05-20 11:13:59 +02:00
committed by Simon Hauser
parent f9722f7ee4
commit 9ab6aa2a7c
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -39,6 +39,10 @@ utils.path_expand = function(path)
path = { path, { "string" } },
}
if utils.is_uri(path) then
return path
end
if path:match "^[%%#<]" then
path = vim.fn.expand(path)
end