Skip to content

Commit

Permalink
Merge pull request #547 from Makaze/patch-1
Browse files Browse the repository at this point in the history
Fix error on item select: Missing length argument (Resolves #546)
  • Loading branch information
ThePrimeagen authored Apr 3, 2024
2 parents 886ebae + e76cb03 commit 02ccb7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/harpoon/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 02ccb7b

Please sign in to comment.