Did you check docs and existing issues?
Neovim version (nvim -v)
0.12.0 nightly
Operating system/version
Linux
Describe the bug
In the README file, it is mentioned that the go down to the next item and go up to the previous item actions support counts. However, when counts are provided to these actions, they are ignored and it always jumps to the next/previous item regardless of the counts.
Steps To Reproduce
- Open a file with a few diagnostic errors.
- Open the
trouble window with document diagnostics.
- Press
3]], which should bring me to the third next item according to the documentation. Observe that it only jumps to the immediate next item.
Expected Behavior
It should jump according to the count provided by the user.
Some observations
I found that the value of vim.v.count1 is not preserved in the call to the wait() function. When I press 3]] in the trouble window, the following code snippet shows the following:
Check vim count 2 will print 3
check vim count 3 will print 1

Did you check docs and existing issues?
Neovim version (nvim -v)
0.12.0 nightly
Operating system/version
Linux
Describe the bug
In the README file, it is mentioned that the
go down to the next itemandgo up to the previous itemactions support counts. However, when counts are provided to these actions, they are ignored and it always jumps to the next/previous item regardless of the counts.Steps To Reproduce
troublewindow with document diagnostics.3]], which should bring me to the third next item according to the documentation. Observe that it only jumps to the immediate next item.Expected Behavior
It should jump according to the count provided by the user.
Some observations
I found that the value of
vim.v.count1is not preserved in the call to thewait()function. When I press3]]in thetroublewindow, the following code snippet shows the following:Check vim count 2will print 3check vim count 3will print 1