Skip to content

Commit

Permalink
fix: telescope extension uses selection_range (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Aug 10, 2023
1 parent bd31dd0 commit bb2cc2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/telescope/_extensions/aerial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ local function aerial_picker(opts)
end
end
end
local lnum = item.selection_range and item.selection_range.lnum or item.lnum
local col = item.selection_range and item.selection_range.col or item.col
return {
value = item,
display = make_display,
name = name,
ordinal = name .. " " .. string.lower(item.kind),
lnum = item.lnum,
col = item.col + 1,
lnum = lnum,
col = col + 1,
filename = filename,
}
end
Expand Down

0 comments on commit bb2cc2f

Please sign in to comment.