fix(marks): preserve uri filenames with path_expand (#3029)
This commit is contained in:
@@ -1117,7 +1117,7 @@ internal.marks = function(opts)
|
||||
line = line,
|
||||
lnum = lnum,
|
||||
col = col,
|
||||
filename = vim.fs.normalize(v.file or bufname),
|
||||
filename = utils.path_expand(v.file or bufname),
|
||||
}
|
||||
-- non alphanumeric marks goes to last
|
||||
if mark:match "%w" then
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user