evil
evil copied to clipboard
End of visual selection is not visible if it occurs in a highlighted search result
To reproduce
-
Ensure
evil-search-moduleis customized toevil-search -
Create a new buffer with the following contents:
foo bar baz -
/ b a r RET(nowbaris highlighted) -
l v g g 0(select from beginning of buffer throughainbar)
Screenshots
Notice that it is impossible to determine where the visual selection ends, because it is inside a highlighted search result.
In Vim, the visual selection's highlighting overrides the search result, so you can see the whole extent of the selection.
BTW it seems that this is probably just a consequence of overlay priorities for evil-ex-search-overlay and evil-ex-substitute-overlay being very high (1000) while evil-visual-overlay's priority is only 99. Presumably the search overlay priorities should be much lower.