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

Method _handleTrim

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

Source from the content-addressed store, hash-verified

2089 this._model.clearSelection(), e3 = Math.max(e3, 0), t3 = Math.min(t3, this._bufferService.buffer.lines.length - 1), this._model.selectionStart = [0, e3], this._model.selectionEnd = [this._bufferService.cols, t3], this.refresh(), this._onSelectionChange.fire();
2090 }
2091 _handleTrim(e3) {
2092 this._model.handleTrim(e3) && this.refresh();
2093 }
2094 _getMouseBufferCoords(e3) {
2095 const t3 = this._mouseService.getCoords(e3, this._screenElement, this._bufferService.cols, this._bufferService.rows, true);
2096 if (t3) return t3[0]--, t3[1]--, t3[1] += this._bufferService.buffer.ydisp, t3;

Callers 2

constructorMethod · 0.80
_handleBufferActivateMethod · 0.80

Calls 2

handleTrimMethod · 0.80
refreshMethod · 0.45

Tested by

no test coverage detected