bug: cmdline completion popup scrollbar thumb doesn't scroll
Did you check docs and existing issues?
- [x] I have read all the noice.nvim docs
- [x] I have updated the plugin to the latest version before submitting this issue
- [x] I have searched the existing issues of noice.nvim
- [x] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.11.2
Operating system/version
MacOS 15.5
Describe the bug
The cmdline autocomplete window scrollbar thumb never moves, regardless of how far you scroll down:
I spent some time tracing it through and the scrollbar element isn't getting the WinScrolled event because the autocmd is set up with a pattern but the event is dispatched without one.
autocmd setup: https://github.com/folke/noice.nvim/blob/0427460c2d7f673ad60eb02b35f5e9926cf67c59/lua/noice/view/scrollbar.lua#L48-L54
event dispatch: https://github.com/folke/noice.nvim/blob/0427460c2d7f673ad60eb02b35f5e9926cf67c59/lua/noice/ui/popupmenu/nui.lua#L245-L258
Adding the win id to nvim_exec_autocmds fixes it:
vim.api.nvim_exec_autocmds("WinScrolled", { pattern = tostring(M.menu.winid), modeline = false })
I'll submit a PR
Steps To Reproduce
- start typing a command
- press tab multiple times
- observe that the scroll thumb does not move
Expected Behavior
The scroll thumb should indicate scroll position
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ "folke/noice.nvim", opts = {} },
-- add any other plugins here
},
})
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Still a bug
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Still a bug
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Still a bug
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Still a bug
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Still a bug