Skip to content

Commit

Permalink
fix: rename harpoon:list():removeAt into harpoon:list():remove_at
Browse files Browse the repository at this point in the history
  • Loading branch information
kimabrandt-flx committed Apr 4, 2024
1 parent 9703797 commit 8673fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/harpoon/list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ end
function HarpoonList:remove_at(index)
if self.items[index] then
Logger:log(
"HarpoonList:removeAt",
"HarpoonList:remove_at",
{ item = self.items[index], index = index }
)
Extensions.extensions:emit(
Expand Down
4 changes: 2 additions & 2 deletions lua/telescope/_extensions/harpoon_marks/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ M.delete_mark_selections = function(prompt_bufnr)
-- delete marks from multi-selection
for i = #selections, 1, -1 do
local selection = selections[i]
harpoon:list():removeAt(selection.index)
harpoon:list():remove_at(selection.index)
count = count + 1
end
else
-- delete marks from single-selection
local selection = action_state.get_selected_entry()
if selection ~= nil then
harpoon:list():removeAt(selection.index)
harpoon:list():remove_at(selection.index)
count = count + 1
else
return 0
Expand Down

0 comments on commit 8673fca

Please sign in to comment.