fix(quickfixlist): format filename to relative if possible
This commit is contained in:
@@ -164,7 +164,7 @@ function _G._quickfix_text_func(info)
|
|||||||
|
|
||||||
local name = ""
|
local name = ""
|
||||||
if item.bufnr ~= 0 then
|
if item.bufnr ~= 0 then
|
||||||
name = vim.fn.bufname(item.bufnr)
|
name = vim.fn.fnamemodify(vim.fn.bufname(item.bufnr), ":.")
|
||||||
end
|
end
|
||||||
if vim.fn.strchars(name) == 0 then
|
if vim.fn.strchars(name) == 0 then
|
||||||
name = " "
|
name = " "
|
||||||
|
|||||||
Reference in New Issue
Block a user