diff --git a/lua/telescope/entry_manager.lua b/lua/telescope/entry_manager.lua index 4d1de0eaf0..c536745303 100644 --- a/lua/telescope/entry_manager.lua +++ b/lua/telescope/entry_manager.lua @@ -31,7 +31,6 @@ EntryManager.__index = EntryManager ---@param set_entry function: handler function for object using the EntryManager ---@param info table: (optional) table containing information to keep track of --- @key looped number: number of existing entries checked when adding new entries ---- @key inserted number: TODO: figure out if this is used anywhere --- @key find_loop number: number of entries checked when trying to find an entry ---@return any function EntryManager:new(max_results, set_entry, info) @@ -39,7 +38,6 @@ function EntryManager:new(max_results, set_entry, info) info = info or {} info.looped = 0 - info.inserted = 0 info.find_loop = 0 -- state contains list of @@ -136,7 +134,7 @@ end ---@param new_container table: the container to be inserted into the linked list function EntryManager:_insert_container_before(picker, index, linked_node, new_container) self.linked_states:place_before(index, linked_node, new_container) - self.set_entry(picker, index, new_container[1], new_container[2], true) + self.set_entry(picker, index, new_container[1], new_container[2]) self:_update_score_from_tracked() end @@ -150,7 +148,7 @@ end ---@param new_container table: the container to be inserted into the linked list function EntryManager:_insert_container_after(picker, index, linked_node, new_container) self.linked_states:place_after(index, linked_node, new_container) - self.set_entry(picker, index, new_container[1], new_container[2], true) + self.set_entry(picker, index, new_container[1], new_container[2]) self:_update_score_from_tracked() end diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 012cede11b..2b7522f862 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -907,8 +907,7 @@ end --- Handler for when entries are added by `self.manager` ---@param index number: the index to add the entry at ---@param entry table: the entry that has been added to the manager ----@param insert boolean: whether the entry has been "inserted" or not -function Picker:entry_adder(index, entry, _, insert) +function Picker:entry_adder(index, entry) if not entry then return end local row = self:get_row(index) diff --git a/lua/tests/manual/find_and_sort_spec.lua b/lua/tests/manual/find_and_sort_spec.lua index 841399f00b..32a128fc49 100644 --- a/lua/tests/manual/find_and_sort_spec.lua +++ b/lua/tests/manual/find_and_sort_spec.lua @@ -71,7 +71,6 @@ local info_to_csv = function(info, filename) writer:write(info.looped .. "\t") writer:write(info.filtered .. "\t") writer:write(info.added .. "\t") - writer:write(info.inserted .. "\t") writer:write(info.total .. "\t") writer:write(info.set_entry .. "\t") writer:write(string.format("%.0f", collectgarbage("count")) .. "\t")