Skip to content

Inserted and deleted lines receive character-level highlights #449

Description

@richardgill

Text on inserted and deleted lines with no corresponding line on the opposite side currently receives CodeDiffCharInsert or CodeDiffCharDelete. This makes the entire text look like a character-level change instead of reserving the stronger highlight for changed text within modified lines.

Expected behavior:

  • Inserted and deleted lines use line-level text highlights.
  • Character-level highlights are limited to changed text within modified lines.
  • The inserted/deleted line text colors can be configured independently and default to the corresponding line-level colors.
  • The behavior is consistent across side-by-side, inline, merge, and result views.

Related to #325, but narrower: this concerns the text highlight applied to lines without a corresponding line, rather than a separate full-row highlight for modified lines.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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