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

Method _selectToWordAt

src/server/web/public/terminal.js:2251–2259  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

2249 }
2250 }
2251 _selectToWordAt(e3) {
2252 const t3 = this._getWordAt(e3, true);
2253 if (t3) {
2254 let i3 = e3[1];
2255 for (; t3.start < 0; ) t3.start += this._bufferService.cols, i3--;
2256 if (!this._model.areSelectionValuesReversed()) for (; t3.start + t3.length > this._bufferService.cols; ) t3.length -= this._bufferService.cols, i3++;
2257 this._model.selectionEnd = [this._model.areSelectionValuesReversed() ? t3.start : t3.start + t3.length, i3];
2258 }
2259 }
2260 _isCharWordSeparator(e3) {
2261 return 0 !== e3.getWidth() && this._optionsService.rawOptions.wordSeparator.indexOf(e3.getChars()) >= 0;
2262 }

Callers 1

_handleMouseMoveMethod · 0.80

Calls 2

_getWordAtMethod · 0.80

Tested by

no test coverage detected