summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/actions.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/actions.lua b/lua/telescope/actions.lua
index 1f70a41..3114679 100644
--- a/lua/telescope/actions.lua
+++ b/lua/telescope/actions.lua
@@ -45,7 +45,8 @@ local function goto_file_selection(prompt_bufnr, command)
else
local filename, row, col
if entry.filename then
- filename = entry.filename
+ filename = entry.path or entry.filename
+
-- TODO: Check for off-by-one
row = entry.row or entry.lnum
col = entry.col