Skip to content

Commit 2e25a13

Browse files
authored
Merge pull request #544 from radvil/api/expose-index
feat(list-api): expose index for later usage
2 parents 3d35250 + 3292a60 commit 2e25a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/harpoon/list.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function HarpoonList:get_by_display(name)
218218
if index == -1 then
219219
return nil
220220
end
221-
return self.items[index]
221+
return self.items[index], index
222222
end
223223

224224
--- much inefficiencies. dun care

0 commit comments

Comments
 (0)