MCPcopy
hub / github.com/codeaashu/claude-code / hasSelection

Function hasSelection

src/ink/selection.ts:676–678  ·  view source on GitHub ↗
(s: SelectionState)

Source from the content-addressed store, hash-verified

674}
675
676export function hasSelection(s: SelectionState): boolean {
677 return s.anchor !== null && s.focus !== null
678}
679
680/**
681 * Normalized selection bounds: start is always before end in reading order.

Callers 7

onRenderMethod · 0.85
copySelectionNoClearMethod · 0.85
copySelectionMethod · 0.85
clearTextSelectionMethod · 0.85
hasTextSelectionMethod · 0.85
handleMouseEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected