evil icon indicating copy to clipboard operation
evil copied to clipboard

End of visual selection is not visible if it occurs in a highlighted search result

Open bcc32 opened this issue 5 months ago • 1 comments

To reproduce

  1. Ensure evil-search-module is customized to evil-search

  2. Create a new buffer with the following contents:

    foo
    bar
    baz
    
  3. / b a r RET (now bar is highlighted)

  4. l v g g 0 (select from beginning of buffer through a in bar)

Screenshots

Image

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.

Image

bcc32 avatar Jun 16 '25 16:06 bcc32

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.

bcc32 avatar Jun 16 '25 16:06 bcc32