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

Function staticStackGutterText

src/ui/staticDiffPager.ts:113–121  ·  view source on GitHub ↗
(
  cell: Extract<DiffRow, { type: "stack-line" }>["cell"],
  lineNumberWidth: number,
  showLineNumbers: boolean,
)

Source from the content-addressed store, hash-verified

111}
112
113function staticStackGutterText(
114 cell: Extract<DiffRow, { type: "stack-line" }>["cell"],
115 lineNumberWidth: number,
116 showLineNumbers: boolean,
117) {
118 return stackGutterText(cell, lineNumberWidth, showLineNumbers).padEnd(
119 showLineNumbers ? lineNumberWidth * 2 + 5 : 2,
120 );
121}
122
123function staticSplitGutterText(
124 cell: SplitLineCell,

Callers 1

renderStaticStackRowFunction · 0.85

Calls 1

stackGutterTextFunction · 0.90

Tested by

no test coverage detected