diff --git a/lua/harpoon/list.lua b/lua/harpoon/list.lua index bf8008ac..b6a5b6f8 100644 --- a/lua/harpoon/list.lua +++ b/lua/harpoon/list.lua @@ -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( diff --git a/lua/telescope/_extensions/harpoon_marks/actions.lua b/lua/telescope/_extensions/harpoon_marks/actions.lua index 33ad6ee3..4e96877b 100644 --- a/lua/telescope/_extensions/harpoon_marks/actions.lua +++ b/lua/telescope/_extensions/harpoon_marks/actions.lua @@ -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