neovim-qt icon indicating copy to clipboard operation
neovim-qt copied to clipboard

neovim-qt can't handle overlapping glyphs with different highlighting

Open mawkler opened this issue 2 years ago • 2 comments

In my statusline I use the nerd font glyphs  (nf-ple-upper_left_triangle and nf-ple-upper_right_triangle) as separators between segments. I noticed that neovim-qt can't handle when those two glyphs have different highlight groups. However, in my terminal (terminator) it works fine as you can see in attached screenshots.

Notice that when the glyphs have the same highlight group (gray background) they are rendered correctly.

Here's a screenshot from neovim-qt:

feline-qt

And here's a screenshot from terminator:

feline-terminal

mawkler avatar Aug 23 '21 21:08 mawkler

I'd guess this is very similar to (or a duplicate of) #271 #154

We render groups of characters with the same style. At the beginning of each group, we draw a rectangular box to clear past cells. The background-color wipe is deleting the gray triangle.

Part 2 of this proposed algorithm might fix the issue: https://github.com/equalsraf/neovim-qt/issues/154#issuecomment-727221934

(We already implemented Part 1).

jgehrig avatar Aug 23 '21 21:08 jgehrig

@jgehrig I see, thank you!

mawkler avatar Aug 23 '21 22:08 mawkler