We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f38c2 commit af3c348Copy full SHA for af3c348
1 file changed
lua/telescope/builtin.lua
@@ -837,10 +837,11 @@ builtin.tagstack = function(opts)
837
opts = opts or {}
838
local tagstack = vim.fn.gettagstack()
839
if vim.tbl_isempty(tagstack.items) then
840
+ print("No tagstack available")
841
return
842
end
843
- for i, value in pairs(tagstack.items) do
844
+ for i, value in ipairs(tagstack.items) do
845
value.text = value.tagname
846
value.lnum = value.from[2]
847
value.filename = vim.fn.bufname(value.from[1])
@@ -849,7 +850,7 @@ builtin.tagstack = function(opts)
849
850
-- reverse the list
851
tags = {}
852
for i=#tagstack.items, 1, -1 do
- tags[#tags+1] = tagstack.items[i]
853
+ table.insert(tags, tagstack.items[i])
854
855
856
pickers.new(opts, {
0 commit comments