MCPcopy Create free account
hub / github.com/anus-dev/ANUS / clamp

Function clamp

packages/cli/src/ui/components/shared/text-buffer.ts:435–436  ·  view source on GitHub ↗
(value: number, min: number, max: number)

Source from the content-addressed store, hash-verified

433 const currentLine = (row: number) => state.lines[row] || '';
434 const currentLineLen = (row: number) => cpLen(currentLine(row));
435 const clamp = (value: number, min: number, max: number) =>
436 Math.min(Math.max(value, min), max);
437
438 if (
439 startRow > endRow ||

Callers 2

replaceRangeInternalFunction · 0.85
textBufferReducerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected