Skip to content

Commit e41095f

Browse files
committed
fix(diff): render structural change marker in stack layout
1 parent c1916f2 commit e41095f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/ui/diff/renderRows.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,13 @@ function renderRow(
864864
const guideOnNewSide = noteGuideSide === "new";
865865
const contentWidth = Math.max(0, width - (guideOnNewSide ? 1 : 0));
866866
const prefix = {
867-
text: guideOnOldSide ? "│" : marker(),
868-
fg: guideOnOldSide ? theme.noteBorder : stackRailColor(row.cell.kind, theme, selected),
869-
bg: theme.panel,
867+
text: structuralChange ? "S" : guideOnOldSide ? "│" : marker(),
868+
fg: structuralChange
869+
? theme.noteTitleText
870+
: guideOnOldSide
871+
? theme.noteBorder
872+
: stackRailColor(row.cell.kind, theme, selected),
873+
bg: structuralChange ? theme.noteTitleBackground : theme.panel,
870874
};
871875

872876
if (!wrapLines) {

0 commit comments

Comments
 (0)