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

Function clearSelection

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

Source from the content-addressed store, hash-verified

120}
121
122export function clearSelection(s: SelectionState): void {
123 s.anchor = null
124 s.focus = null
125 s.isDragging = false
126 s.anchorSpan = null
127 s.scrolledOffAbove = []
128 s.scrolledOffBelow = []
129 s.scrolledOffAboveSW = []
130 s.scrolledOffBelowSW = []
131 s.virtualAnchorRow = undefined
132 s.virtualFocusRow = undefined
133 s.lastPressHadAlt = false
134}
135
136// Unicode-aware word character matcher: letters (any script), digits,
137// and the punctuation set iTerm2 treats as word-part by default.

Callers 4

shiftSelectionFunction · 0.85
shiftSelectionForFollowFunction · 0.85
copySelectionMethod · 0.85
clearTextSelectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected