hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

Persisting hints even after Hop exits

Open hadronized opened this issue 4 years ago • 3 comments
trafficstars

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.

Screenshot_20210328_000222

Screenshot_20210327_235433

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.

hadronized avatar Mar 27 '21 23:03 hadronized

I just tested in goneovim to be sure it was not a TUI issue: I reproduce there too.

Screenshot_20210328_141533

hadronized avatar Mar 28 '21 12:03 hadronized

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.

hadronized avatar Mar 28 '21 14:03 hadronized

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.

Kyran-C avatar Mar 31 '21 10:03 Kyran-C