Skip to content

Commit

Permalink
feat(list-api): expose index for later usage
Browse files Browse the repository at this point in the history
- I have a custom append/prepend list where I need to notify the user if
current file is already in the list, if it is, I want to hint the use
for the exact index, so we can go faster
  • Loading branch information
Radvil committed Apr 1, 2024
1 parent a38be6e commit 3292a60
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 @@ -126,7 +126,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 3292a60

Please sign in to comment.