mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Merge pull request #544 from radvil/api/expose-index
feat(list-api): expose index for later usage
This commit is contained in:
commit
2e25a13fa4
@ -218,7 +218,7 @@ function HarpoonList:get_by_display(name)
|
||||
if index == -1 then
|
||||
return nil
|
||||
end
|
||||
return self.items[index]
|
||||
return self.items[index], index
|
||||
end
|
||||
|
||||
--- much inefficiencies. dun care
|
||||
|
Loading…
x
Reference in New Issue
Block a user