Skip to content

Commit

Permalink
Use menu_get instead of menu_info, to avoid Vim #15154
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Jul 5, 2024
1 parent 20df774 commit 1fa858a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/scrollview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2874,8 +2874,12 @@ local handle_mouse = function(button, primary)
menu_slots_available - mousepos.screenrow,
mousepos.screenrow - 1
)
menu_slots_available = menu_slots_available
- #fn.menu_info(menu_name, menu_mode).submenus
-- menu_get is used instead of menu_info, to avoid Vim Issue
-- #15154.
pcall(function()
menu_slots_available = menu_slots_available
- #fn.menu_get(menu_name, menu_mode)[1].submenus
end)
end
for line_idx, line in ipairs(sign_props.lines) do
if menu_slots_available ~= nil
Expand Down

0 comments on commit 1fa858a

Please sign in to comment.