Skip to content

Commit

Permalink
fix(menu): use 0 as bufnr to set winoption
Browse files Browse the repository at this point in the history
makes this usable with nightly
  • Loading branch information
max397574 committed Jul 5, 2024
1 parent b23f03f commit bbd5b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neocomplete/menu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Menu:open_win(offset)
col = -offset,
zindex = 1000,
})
vim.wo[self.winnr][self.buf].scrolloff = 0
vim.wo[self.winnr][0].scrolloff = 0

if self.config.ui.menu.scrollbar then
self.scrollbar.win = vim.api.nvim_open_win(self.scrollbar.buf, false, {
Expand Down

0 comments on commit bbd5b63

Please sign in to comment.