mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
add self.config default item in remove function
This commit is contained in:
parent
b8d690f098
commit
4bb6637130
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user