-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Highlighted search results loses highlighting after switching to another tab and back #8416
Comments
This is the one that bugs me:
The first matched word is highlighted according to "vim.searchMatchColor", but pressing n/shift+n just removes the current match highlight, but jumps correctly. |
I merged this PR and roughly used it, but found two issues:
|
My PR simply addresses highlighting the current match, and doesn't address the tab-switching aspect. I think the highlighting would be accurate again if you jump to the next match and back (n -> N). All though not optimal, my aim was to address the second part of OP's point 5, as that was the one that bugged me the most. As for the tab switching I didn't really look into it that much, but I assume a call to |
From some brief testing it appears that mode is reset to normal mode when switching views, as the |
I almost got used to run empty command to "turn on" highlighting in other tab. Other thing is that I have started doing so in ordinary vim. Which is completely not necessary. Ordinary vim keeps highlighting searched text across buffers/tabs/splits/etc till user runs Probably might use something like |
BTW not really. |
Out of sudden - highlighting disapperas even when I change zoom level ( |
Describe the bug
Highlighted search results loses highlighting after switching to another tab and back to initial where searching occurred.
To Reproduce
Steps to reproduce the behavior:
"vim.hlsearch": true,
"vim.searchHighlightColor": "#ffff88",
/
or?
in command line or with*
in normal mode while cursor is on the necessary word (word becomes highlighted with color defined in settings);ctrl+tab
/ctrl+shift+tab
or with:tabn
/:tabp
commands;n
/shift+n
finds next/previous occurances, but w/o highlighting.Expected behavior
Searched word should stay highlighted in all open tabs where word exist until other search occurs or until
:noh
command is executed;Environment (please complete the following information):
Additional context
Important to mention - running any command or empty command (
:
+return
) or even canceling empty command (:
+esc
) restores highlighting, unitl next switching between tabs.The text was updated successfully, but these errors were encountered: