hop.nvim
hop.nvim copied to clipboard
Persisting hints even after Hop exits
This is a bug that I have been experiencing a lot — at least in the TUI. Some hints, after Hop quits and cleans everything, still persist. I have implemented a mitigation locally (that basically forces erasing everything, even portion of the buffer not visible), and it doesn’t change anything. See screenshots.


This bug is not easily reproducible as I have no idea what’s happening, but I highly suspect a Neovim bug for the virtual text on extmarks.
I just tested in goneovim to be sure it was not a TUI issue: I reproduce there too.

So a89898a is a mitigation. It doesn’t fix the problem because I believe it’s a Neovim bug, but at least it should prevent Hop users from seeing the bug. I’ll switch the hack off when Neovim fixes the issue.
I think I've seen this a couple times as well. I'm pretty sure it was only a single letter. I tried replacing the letter and the hint character would just move to the right one column. Likewise for just deleting the character.
I can't reproduce it either, it's pretty rare.