diff options
| author | bi0ha2ard <bi0ha2ard@users.noreply.github.com> | 2021-08-04 08:56:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-04 08:56:15 +0200 |
| commit | b7cd8c7699623c4b351009192dc9a03a54195e6b (patch) | |
| tree | 2ef3140870a6d79a40e1604b25eb71be18de1f8f /lua | |
| parent | f8caad1d6bd19dbd79945850342b49df41928525 (diff) | |
fix(entry_to_qf): handle nil entry.cwd and absolute filenames (#1058)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 4ee6134..6dc022e 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -17,11 +17,10 @@ local p_scroller = require "telescope.pickers.scroller" local action_state = require "telescope.actions.state" local action_utils = require "telescope.actions.utils" local action_set = require "telescope.actions.set" +local from_entry = require "telescope.from_entry" 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 @@ -585,7 +584,7 @@ end local entry_to_qf = function(entry) return { bufnr = entry.bufnr, - filename = Path:new(entry.cwd, entry.filename):absolute(), + filename = from_entry.path(entry, false), lnum = entry.lnum, col = entry.col, text = entry.text or entry.value.text or entry.value, |
