Build the rendered label text for one collapsed gap row.
(text: string, expandable: boolean)
| 1125 | |
| 1126 | /** Build the rendered label text for one collapsed gap row. */ |
| 1127 | function 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. */ |
| 1138 | function renderHeaderRow( |