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

Function currentLineLen

packages/cli/src/ui/components/shared/text-buffer.ts:434–434  ·  view source on GitHub ↗
(row: number)

Source from the content-addressed store, hash-verified

432): TextBufferState => {
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

Callers 2

replaceRangeInternalFunction · 0.85
textBufferReducerFunction · 0.85

Calls 2

cpLenFunction · 0.85
currentLineFunction · 0.85

Tested by

no test coverage detected