Skip to content

Commit c531463

Browse files
authored
fix: provide the popup_menu to the resolve function (#53)
1 parent b4f67a9 commit c531463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/grapple/popup.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ end
147147
---@param popup_menu Grapple.PopupMenu<T>
148148
function popup.close(popup_menu)
149149
if popup_menu.handler.resolve ~= nil then
150-
local ok, _ = pcall(popup_menu.handler.resolve)
150+
local ok, _ = pcall(popup_menu.handler.resolve, popup_menu)
151151
if not ok then
152152
log.warn("Failed to resolve popup menu before closing")
153153
end

0 commit comments

Comments
 (0)