Closed Amleto closed 10 months ago
https://github.com/folke/trouble.nvim/assets/2996796/2f6e8c52-6e8e-43ea-be52-a30a7a93c4c1
screen recording of the phenomenon
See also:
The common thing in all the screen captures is when it says [1, 1]
. My guess is that this happens whenever there's no exact line number or position associated with a given error, and then Trouble fills in a default value of [1, 1]
.
The troublesome line is marked as "BAD". When the cursor is hovered over it, everything goes haywire and the cursor starts moving right all on its own.
Thanks @YodaEmbedding for highlighting previous reports, and thanks @folke for the plug-in and the fix
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.2
Operating system/version
win10 22h2
Describe the bug
executing
trouble.open("quickfix")
and putting the cursor under the trouble group results in the cursor moving by itself. It moves one column at a time to the right until it reaches the end of the line, then it goes to the next line, starting at the first column. This repeats until it reaches the last column of the last line.Additionally the theme is broken and the main buffer is replaced with a second trouble buffer. From this,
To this,
Steps To Reproduce
nvim -u repo.lua
:CMakeSelectConfigurePreset
- choose default:CMakeGenerate
:CMakeBuild
(choose ALL_BUILD if necessary)There should be build errors - check with
:cope
, then close them :ccl
:lua require'trouble'.open'quickfix'
<CR>
to ignore the missing web-devicons warningExpected Behavior
The trouble quickfix buffer should open, the cursor should not go crazy, and the already-open buffer should not have its content replaced.
Repro