mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +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
|
if index == -1 then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
return self.items[index]
|
return self.items[index], index
|
||||||
end
|
end
|
||||||
|
|
||||||
--- much inefficiencies. dun care
|
--- much inefficiencies. dun care
|
||||||
|
Loading…
x
Reference in New Issue
Block a user