fix absolute path

This commit is contained in:
James Trew
2023-06-24 13:43:18 -04:00
parent 121a5352ca
commit 16aacf6443
+4
View File
@@ -450,6 +450,10 @@ function make_entry.gen_from_vimgrep_json(opts)
end
if k == "path" then
local path = Path:new(t.filename)
if path:is_absolute() then
return t.filename
end
return Path:new({ cwd, t.filename }):absolute()
end