diff options
| author | Sebastian Lyng Johansen <seblyng98@gmail.com> | 2021-07-23 20:17:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-23 14:17:26 -0400 |
| commit | c0f1999b0280bb042bba01c930dd94a4bfdee363 (patch) | |
| tree | 7c9855dbe4d7fd6c22156f0db6b4857eb1e69c6b /lua | |
| parent | 79644ab67731c7ba956c354bf0545282f34e10cc (diff) | |
fix: make path for send to qflist correct (#1037)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 7e61e63..4ac059b 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -20,6 +20,8 @@ local action_set = require "telescope.actions.set" local transform_mod = require("telescope.actions.mt").transform_mod +local Path = require "plenary.path" + local actions = setmetatable({}, { __index = function(_, k) -- TODO(conni2461): Remove deprecated messages @@ -547,7 +549,7 @@ end local entry_to_qf = function(entry) return { bufnr = entry.bufnr, - filename = entry.filename, + filename = Path:new(entry.cwd, entry.filename):absolute(), lnum = entry.lnum, col = entry.col, text = entry.text or entry.value.text or entry.value, |
