fix: make path for send to qflist correct (#1037)

This commit is contained in:
Sebastian Lyng Johansen
2021-07-23 20:17:26 +02:00
committed by GitHub
parent 79644ab677
commit c0f1999b02

View File

@@ -20,6 +20,8 @@ local action_set = require "telescope.actions.set"
local transform_mod = require("telescope.actions.mt").transform_mod local transform_mod = require("telescope.actions.mt").transform_mod
local Path = require "plenary.path"
local actions = setmetatable({}, { local actions = setmetatable({}, {
__index = function(_, k) __index = function(_, k)
-- TODO(conni2461): Remove deprecated messages -- TODO(conni2461): Remove deprecated messages
@@ -547,7 +549,7 @@ end
local entry_to_qf = function(entry) local entry_to_qf = function(entry)
return { return {
bufnr = entry.bufnr, bufnr = entry.bufnr,
filename = entry.filename, filename = Path:new(entry.cwd, entry.filename):absolute(),
lnum = entry.lnum, lnum = entry.lnum,
col = entry.col, col = entry.col,
text = entry.text or entry.value.text or entry.value, text = entry.text or entry.value.text or entry.value,