Skip to content

Commit

Permalink
fix: tag scrollbar and popupmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 26, 2022
1 parent 2462809 commit 13bed57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/noice/ui/popupmenu/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function M.create(state)
end, state.items),
})
M.menu:mount()
Util.tag(M.menu.bufnr, "popupmenu")

M.scroll = Scrollbar({
winnr = M.menu.winid,
Expand Down
1 change: 1 addition & 0 deletions lua/noice/view/scrollbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ end

function Scrollbar:_open_win(opts)
local bufnr = vim.api.nvim_create_buf(false, true)
Util.tag(bufnr, "scrollbar")
local ret = {
bufnr = bufnr,
winnr = vim.api.nvim_open_win(bufnr, false, {
Expand Down

0 comments on commit 13bed57

Please sign in to comment.