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

Method _find

src/server/web/public/terminal.js:6448–6457  ·  view source on GitHub ↗
(e3, t3, i2, s2)

Source from the content-addressed store, hash-verified

6446 i3 && (this._highlightedLines.add(i3.marker.line), this._highlightDecorations.push({ decoration: i3, match: e4, dispose() {
6447 i3.dispose();
6448 } }));
6449 }
6450 }
6451 _find(e3, t3, i2, s2) {
6452 var _a;
6453 if (!this._terminal || !e3 || 0 === e3.length) return (_a = this._terminal) == null ? void 0 : _a.clearSelection(), void this.clearDecorations();
6454 if (i2 > this._terminal.cols) throw new Error(`Invalid col: ${i2} to search in terminal of ${this._terminal.cols} cols`);
6455 let r2;
6456 this._initLinesCache();
6457 const o2 = { startRow: t3, startCol: i2 };
6458 if (r2 = this._findInLine(e3, o2, s2), !r2) for (let i3 = t3 + 1; i3 < this._terminal.buffer.active.baseY + this._terminal.rows && (o2.startRow = i3, o2.startCol = 0, r2 = this._findInLine(e3, o2, s2), !r2); i3++) ;
6459 return r2;
6460 }

Callers 1

_highlightAllMatchesMethod · 0.95

Calls 4

clearDecorationsMethod · 0.95
_initLinesCacheMethod · 0.95
_findInLineMethod · 0.95
clearSelectionMethod · 0.45

Tested by

no test coverage detected