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

Method _fireEventIfSelectionChanged

src/server/web/public/terminal.js:2171–2174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2169 } else this._fireEventIfSelectionChanged();
2170 }
2171 _fireEventIfSelectionChanged() {
2172 const e3 = this._model.finalSelectionStart, t3 = this._model.finalSelectionEnd, i3 = !(!e3 || !t3 || e3[0] === t3[0] && e3[1] === t3[1]);
2173 i3 ? e3 && t3 && (this._oldSelectionStart && this._oldSelectionEnd && e3[0] === this._oldSelectionStart[0] && e3[1] === this._oldSelectionStart[1] && t3[0] === this._oldSelectionEnd[0] && t3[1] === this._oldSelectionEnd[1] || this._fireOnSelectionChange(e3, t3, i3)) : this._oldHasSelection && this._fireOnSelectionChange(e3, t3, i3);
2174 }
2175 _fireOnSelectionChange(e3, t3, i3) {
2176 this._oldSelectionStart = e3, this._oldSelectionEnd = t3, this._oldHasSelection = i3, this._onSelectionChange.fire();
2177 }

Callers 3

_handleMouseUpMethod · 0.80
setSelectionMethod · 0.80
rightClickSelectMethod · 0.80

Calls 1

Tested by

no test coverage detected