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

Function isCellSelected

src/ink/selection.ts:698–710  ·  view source on GitHub ↗
(
  s: SelectionState,
  col: number,
  row: number,
)

Source from the content-addressed store, hash-verified

696 * Used by the renderer to apply inverse style.
697 */
698export function isCellSelected(
699 s: SelectionState,
700 col: number,
701 row: number,
702): boolean {
703 const b = selectionBounds(s)
704 if (!b) return false
705 const { start, end } = b
706 if (row < start.row || row > end.row) return false
707 if (row === start.row && col < start.col) return false
708 if (row === end.row && col > end.col) return false
709 return true
710}
711
712/** Extract text from one screen row. When the next row is a soft-wrap
713 * continuation (screen.softWrap[row+1]>0), clamp to that content-end

Callers

nothing calls this directly

Calls 1

selectionBoundsFunction · 0.85

Tested by

no test coverage detected