You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated the plugin to the latest version before submitting this issue
I have searched the existing issues of trouble.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.10.0
Operating system/version
Ubuntu 22.04
Describe the bug
Trouble's special windows do not set winfixbuf. In particular, when in the qflist window, using :cnext or :cprev results in a Cursor position outside buffer error (whereas neovim's own copen/cfile window handles this perfectly fine).
I also encounter this issue (Cursor position outside buffer errors) when I mess with the windows while Trouble is open. Specifically if I close every window except the trouble window using <c-w>o, and then press enter to jump to the selected diagnostic.
If I set winfixbuf in the Trouble window as suggested above, I instead see a single error Cannot switch buffer. 'winfixbuf' is enabled.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0
Operating system/version
Ubuntu 22.04
Describe the bug
Trouble's special windows do not set winfixbuf. In particular, when in the qflist window, using
:cnext
or:cprev
results in aCursor position outside buffer
error (whereas neovim's owncopen
/cfile
window handles this perfectly fine).Steps To Reproduce
nvim -u repro.lua
:cfile cfile.txt
(attached cfile.txt):copen
, switch to this window:cnext
, works perfectly fine:Trouble qflist toggle
, switch to the Trouble window:cnext
, results in errorExpected Behavior
:cnext
and:cprev
should work as if in the nativecopen
window.Note: If
:set winfixbuf
is used inside the Trouble window, then:cnext
and:cprev
work as expected.Repro
The text was updated successfully, but these errors were encountered: