MCPcopy
hub / github.com/codeaashu/claude-code / reverseIndex

Method reverseIndex

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

Source from the content-addressed store, hash-verified

3435 return this._activeBuffer.tabs[this._activeBuffer.x] = true, true;
3436 }
3437 reverseIndex() {
3438 if (this._restrictCursor(), this._activeBuffer.y === this._activeBuffer.scrollTop) {
3439 const e3 = this._activeBuffer.scrollBottom - this._activeBuffer.scrollTop;
3440 this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase + this._activeBuffer.y, e3, 1), this._activeBuffer.lines.set(this._activeBuffer.ybase + this._activeBuffer.y, this._activeBuffer.getBlankLine(this._eraseAttrData())), this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop, this._activeBuffer.scrollBottom);
3441 } else this._activeBuffer.y--, this._restrictCursor();
3442 return true;
3443 }
3444 fullReset() {
3445 return this._parser.reset(), this._onRequestReset.fire(), true;
3446 }

Callers 1

constructorMethod · 0.95

Calls 6

_restrictCursorMethod · 0.95
_eraseAttrDataMethod · 0.95
shiftElementsMethod · 0.80
getBlankLineMethod · 0.80
setMethod · 0.45
markRangeDirtyMethod · 0.45

Tested by

no test coverage detected