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

Function diffLineNumberText

src/ui/diff/rowStyle.ts:143–145  ·  view source on GitHub ↗
(value: number | undefined, width: number)

Source from the content-addressed store, hash-verified

141
142/** Format one optional line number for a fixed-width diff gutter. */
143export function diffLineNumberText(value: number | undefined, width: number) {
144 return value === undefined ? " ".repeat(width) : String(value).padStart(width, " ");
145}
146
147/** Build the stack-view gutter text shared by the TUI and static pager renderers. */
148export function stackGutterText(

Callers 1

stackGutterTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected