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

Function spansFor

src/ui/diff/expandCollapsedRows.ts:87–90  ·  view source on GitHub ↗
(line: string | undefined)

Source from the content-addressed store, hash-verified

85}
86
87function spansFor(line: string | undefined): RenderSpan[] {
88 const text = expandDiffTabs(sanitizeTerminalLine(line ?? ""));
89 return text.length > 0 ? [{ text }] : [];
90}
91
92function buildSplitContextRow(
93 fileId: string,

Callers 1

expandCollapsedRowsFunction · 0.85

Calls 2

expandDiffTabsFunction · 0.90
sanitizeTerminalLineFunction · 0.90

Tested by

no test coverage detected