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

Function staticSplitGutterText

src/ui/staticDiffPager.ts:123–131  ·  view source on GitHub ↗
(
  cell: SplitLineCell,
  lineNumberWidth: number,
  showLineNumbers: boolean,
)

Source from the content-addressed store, hash-verified

121}
122
123function staticSplitGutterText(
124 cell: SplitLineCell,
125 lineNumberWidth: number,
126 showLineNumbers: boolean,
127) {
128 return splitGutterText(cell, lineNumberWidth, showLineNumbers).padEnd(
129 showLineNumbers ? lineNumberWidth + 3 : 2,
130 );
131}
132
133/** Render one non-interactive stacked diff row as ANSI text. */
134function renderStaticStackRow(

Callers 1

renderStaticSplitCellFunction · 0.85

Calls 1

splitGutterTextFunction · 0.90

Tested by

no test coverage detected