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

Function resolveStaticWidth

src/ui/staticDiffPager.ts:362–367  ·  view source on GitHub ↗
(deps: StaticDiffPagerDeps)

Source from the content-addressed store, hash-verified

360}
361
362function resolveStaticWidth(deps: StaticDiffPagerDeps) {
363 return Math.max(
364 MIN_STATIC_WIDTH,
365 Math.floor(deps.terminalColumns ?? process.stdout.columns ?? DEFAULT_STATIC_WIDTH),
366 );
367}
368
369function warnFallback(deps: StaticDiffPagerDeps, reason: string) {
370 deps.stderr?.write(

Callers 1

renderStaticDiffPagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected