neovim-qt
neovim-qt copied to clipboard
neovim-qt can't handle overlapping glyphs with different highlighting
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:
And here's a screenshot from terminator:
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 I see, thank you!