Skip to content

Commit

Permalink
nvim_tabpage_set_win -> nvim_set_current_win
Browse files Browse the repository at this point in the history
To support older versions of Neovim.
  • Loading branch information
dstein64 committed Jun 24, 2024
1 parent 2c2234c commit 66a6c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/scrollview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,7 @@ local handle_mouse = function(button, primary)
zindex = 1,
style = 'minimal'
})
api.nvim_tabpage_set_win(0, popup_win)
api.nvim_set_current_win(popup_win)
vim.cmd('popup ' .. menu_name)
for _, menu_mode in ipairs(menu_modes) do
vim.cmd('silent! ' .. menu_mode .. 'unmenu ' .. menu_name)
Expand Down

0 comments on commit 66a6c03

Please sign in to comment.