fix(picker): delete selection in disjointed finder results (#3266)
ipairs won't find find all results if entry_maker happens to return nil for a line.
This commit is contained in:
@@ -833,7 +833,7 @@ function Picker:delete_selection(delete_cb)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local selection_index = {}
|
local selection_index = {}
|
||||||
for result_index, result_entry in ipairs(self.finder.results) do
|
for result_index, result_entry in pairs(self.finder.results) do
|
||||||
if vim.tbl_contains(delete_selections, result_entry) then
|
if vim.tbl_contains(delete_selections, result_entry) then
|
||||||
table.insert(selection_index, result_index)
|
table.insert(selection_index, result_index)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user