Skip to content

Background color of wide glyphs #1455

@jmriego

Description

@jmriego

This is related to the issue #467. I'm using airline for vim and tmux instead of powerline but this would probably happen with any custom status line.

My issue is that I have a two different backgrounds color separated by a double-width glyph. After that glyph, there is a space (so it's detecting correctly that is a ligature and thus a wide glyph). The next space should be in a different background color but it's not doing so because of the special case that was introduced for powerline in #467.

airline

I was thinking of several solutions such as not doing that special case of duplicating the colors unless the change is exactly in the next space to the glyph. Probably the easiest way would be just to do the copy of the foreground color as the code is doing now but don't making any changes to the background color. That seems to work for both powerline and any custom line I have thought of

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions