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

Function cellCodeText

src/ui/diff/renderRows.tsx:450–453  ·  view source on GitHub ↗

Return one cell's code text without rail, gutter, sign, or line-number decorations.

(spans: RenderSpan[], horizontalOffset = 0)

Source from the content-addressed store, hash-verified

448
449/** Return one cell's code text without rail, gutter, sign, or line-number decorations. */
450function cellCodeText(spans: RenderSpan[], horizontalOffset = 0) {
451 return sliceTextByWidth(spansText(spans), Math.max(0, horizontalOffset), Number.MAX_SAFE_INTEGER)
452 .text;
453}
454
455function buildPlainSplitCellLines(
456 cell: SplitLineCell,

Callers 1

Calls 2

sliceTextByWidthFunction · 0.90
spansTextFunction · 0.85

Tested by

no test coverage detected