Merge pull request #547 from Makaze/patch-1

Fix error on item select: Missing length argument (Resolves #546)
This commit is contained in:
ThePrimeagen 2024-04-03 16:02:10 -06:00 committed by GitHub
commit 02ccb7b92b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,8 @@ function HarpoonUI:select_menu_item(options)
-- must first save any updates potentially made to the list before
-- navigating
local list = Buffer.get_contents(self.bufnr)
self.active_list:resolve_displayed(list)
local length = #list
self.active_list:resolve_displayed(list, length)
Logger:log(
"ui#select_menu_item selecting item",