Skip to content

diff-highlight settings break whitespace error color in some cases #465

@patrikndv

Description

@patrikndv

When using the diff-highlight settings, the color.diff.whitespace color is sometimes overridden because the trailing whitespace error becomes colored by highlight instead. This seems to happen at least when the block of change is a single line that is changed to introduce whitespace error. In other words, something like:

-this is a changed line
+this is a changed line(WHITESPACE)

This will color the trailing whitespace in highlight instead of color.diff.whitespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions