MCPcopy Index your code
hub / github.com/codeaashu/claude-code / sp

Function sp

src/ink/selection.ts:553–558  ·  view source on GitHub ↗
(p: Point)

Source from the content-addressed store, hash-verified

551 // irrelevant to the keyboard-scroll round-trip case.
552 if (s.anchorSpan) {
553 const sp = (p: Point): Point => {
554 const r = p.row + dRow
555 if (r < minRow) return { col: 0, row: minRow }
556 if (r > maxRow) return { col: width - 1, row: maxRow }
557 return { col: p.col, row: r }
558 }
559 s.anchorSpan = {
560 lo: sp(s.anchorSpan.lo),
561 hi: sp(s.anchorSpan.hi),

Callers 1

shiftSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected