MCPcopy Create free account
hub / github.com/modem-dev/hunk / collapsedRowLabel

Function collapsedRowLabel

src/ui/diff/renderRows.tsx:1127–1135  ·  view source on GitHub ↗

Build the rendered label text for one collapsed gap row.

(text: string, expandable: boolean)

Source from the content-addressed store, hash-verified

1125
1126/** Build the rendered label text for one collapsed gap row. */
1127function collapsedRowLabel(text: string, expandable: boolean) {
1128 if (!expandable) {
1129 return `··· ${text} ···`;
1130 }
1131
1132 // The leading chevron hints that the row is interactive on terminals that
1133 // render Unicode glyphs. The label still reads naturally on plain VT100.
1134 return `▾ ${text}`;
1135}
1136
1137/** Render collapsed and hunk-header rows, including the optional add-note target. */
1138function renderHeaderRow(

Callers 1

renderHeaderRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected