Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search count virtual text gets stuck on the line #464

Closed
3 tasks done
Galicarnax opened this issue May 14, 2023 · 2 comments · Fixed by #616 or #639
Closed
3 tasks done

Search count virtual text gets stuck on the line #464

Galicarnax opened this issue May 14, 2023 · 2 comments · Fixed by #616 or #639
Labels
bug Something isn't working

Comments

@Galicarnax
Copy link

Galicarnax commented May 14, 2023

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.0

Operating system/version

Arch Linux

Describe the bug

I have view_search = "virtualtext" in the config, and most of the time that works smoothly. But once in a while, one of the virtual texts (showing the number of current match and total search count) gets stuck at the end of the line. I still can loop over matches, and at each line, virtual text is shown normally, disappearring when I move to the next match. But the one which is stuck keeps hanging on its line. When I move to that match, a second virtual text is shown normally after the stuck one. The stuck one does not go away with hitting <Esc> or anything else.

Steps To Reproduce

Unfortunately, I haven't been able yet to detect exact triggers for this behaviour. It happens not very often (say, one in ten searches). I guess, some combintation of triggers is involved (e.g., deleting the current search and moving to a different buffer and back).

Expected Behavior

Search count virtual text follows cursor, without getting stuck on the line.

Repro

No response

@Galicarnax Galicarnax added the bug Something isn't working label May 14, 2023
@rkulla
Copy link

rkulla commented Oct 12, 2023

I even get multiple stuck lines:

noice

If i were to then :set nohlsearch (even multiple times) just the unstuck ones would go away (in this case /timestamp [3/31] would be the only one to go away). nvim 0.9 with latest version of noice.

@folke
Copy link
Owner

folke commented Oct 12, 2023

right, the switching buffers does it indeed. Will fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants