Skip to content

Commit

Permalink
Merge pull request #349 from zachlankton/harpoon2-fix-list-remove-bug
Browse files Browse the repository at this point in the history
add self.config default item in remove function
  • Loading branch information
ThePrimeagen authored Dec 1, 2023
2 parents b8d690f + 4bb6637 commit 901e58c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/harpoon/list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ end

---@return HarpoonList
function HarpoonList:remove(item)
item = item or self.config.add(self.config)
for i, v in ipairs(self.items) do
if self.config.equals(v, item) then
Listeners.listeners:emit(
Expand Down

0 comments on commit 901e58c

Please sign in to comment.