MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / selectLineAt

Function selectLineAt

source code/ink/selection.ts:370–382  ·  view source on GitHub ↗
(
  s: SelectionState,
  screen: Screen,
  row: number,
)

Source from the content-addressed store, hash-verified

368 * line content.
369 */
370export function selectLineAt(
371 s: SelectionState,
372 screen: Screen,
373 row: number,
374): void {
375 if (row < 0 || row >= screen.height) return
376 const lo = { col: 0, row }
377 const hi = { col: screen.width - 1, row }
378 s.anchor = lo
379 s.focus = hi
380 s.isDragging = true
381 s.anchorSpan = { lo, hi, kind: 'line' }
382}
383
384/**
385 * 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