fix: skip path escaping when adding items to quickfix list (#1712)

This commit is contained in:
Daniel Imfeld
2022-03-06 09:34:44 -10:00
committed by GitHub
parent 1ebf53d8db
commit b501d9ecb7
2 changed files with 10 additions and 3 deletions

View File

@@ -10,8 +10,15 @@ This will provide standard mechanism for accessing information from an entry.
local from_entry = {}
function from_entry.path(entry, validate)
local path = entry.path and vim.fn.fnameescape(entry.path) or nil
function from_entry.path(entry, validate, escape)
escape = vim.F.if_nil(escape, true)
local path
if escape then
path = entry.path and vim.fn.fnameescape(entry.path) or nil
else
path = entry.path
end
if path == nil then
path = entry.filename
end