Skip to content

Commit

Permalink
Merge pull request #544 from radvil/api/expose-index
Browse files Browse the repository at this point in the history
feat(list-api): expose index for later usage
  • Loading branch information
ThePrimeagen authored Apr 3, 2024
2 parents 3d35250 + 3292a60 commit 2e25a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/harpoon/list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e25a13

Please sign in to comment.