Skip to content

fix(ui): keep moved-line colors on wrapped diff rows - #812

Merged
benvinegar merged 1 commit into
modem-dev:mainfrom
HackAttack:fix/wrapped-moved-lines
Aug 25, 2026
Merged

fix(ui): keep moved-line colors on wrapped diff rows#812
benvinegar merged 1 commit into
modem-dev:mainfrom
HackAttack:fix/wrapped-moved-lines

Conversation

@HackAttack

Copy link
Copy Markdown
Contributor

Moved-line coloring never reached anyone with wrap_lines = true. Rows have two paint paths, and only the unwrapped one forwarded the move classification to the palette: the wrapped cell builders called splitCellPalette/stackCellPalette without the moveKind argument, so every moved row fell back to the ordinary added or removed tint.

Moved-line coloring never reached anyone with `wrap_lines = true`. Rows
have two paint paths, and only the unwrapped one forwarded the move
classification to the palette: the wrapped cell builders called
`splitCellPalette`/`stackCellPalette` without the `moveKind` argument,
so every moved row fell back to the ordinary added or removed tint.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

@HackAttack is attempting to deploy a commit to the Modem Team on Vercel.

A member of the Team first needs to authorize it.

@benvinegar benvinegar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the bug locally: moved lines use the correct tint with wrapping off, but fall back to the normal added/removed colors when wrapping is enabled.

This fixes both the stack and split rendering paths. I also verified that the regression tests fail against the old implementation and pass with this change, including after merging into the latest main. Looks good to me.

Tiny non-blocking nit: the changeset says color.moved, but Git calls this diff.colorMoved / --color-moved.

This comment was generated by Pi using gpt-5.6-sol

@benvinegar
benvinegar merged commit e3e2f42 into modem-dev:main Aug 25, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants