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

Function selectLineAt

src/ink/selection.ts:368–380  ·  view source on GitHub ↗
(
  s: SelectionState,
  screen: Screen,
  row: number,
)

Source from the content-addressed store, hash-verified

366 * line content.
367 */
368export function selectLineAt(
369 s: SelectionState,
370 screen: Screen,
371 row: number,
372): void {
373 if (row < 0 || row >= screen.height) return
374 const lo = { col: 0, row }
375 const hi = { col: screen.width - 1, row }
376 s.anchor = lo
377 s.focus = hi
378 s.isDragging = true
379 s.anchorSpan = { lo, hi, kind: 'line' }
380}
381
382/**
383 * Extend a word/line-mode selection to the word/line at (col, row). The

Callers 1

handleMultiClickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected