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

Method deleteLines

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

Source from the content-addressed store, hash-verified

2982 return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y, this._activeBuffer.scrollBottom), this._activeBuffer.x = 0, true;
2983 }
2984 deleteLines(e3) {
2985 this._restrictCursor();
2986 let t3 = e3.params[0] || 1;
2987 if (this._activeBuffer.y > this._activeBuffer.scrollBottom || this._activeBuffer.y < this._activeBuffer.scrollTop) return true;
2988 const i3 = this._activeBuffer.ybase + this._activeBuffer.y;
2989 let s3;
2990 for (s3 = this._bufferService.rows - 1 - this._activeBuffer.scrollBottom, s3 = this._bufferService.rows - 1 + this._activeBuffer.ybase - s3; t3--; ) this._activeBuffer.lines.splice(i3, 1), this._activeBuffer.lines.splice(s3, 0, this._activeBuffer.getBlankLine(this._eraseAttrData()));
2991 return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y, this._activeBuffer.scrollBottom), this._activeBuffer.x = 0, true;
2992 }
2993 insertChars(e3) {
2994 this._restrictCursor();
2995 const t3 = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y);

Callers 1

constructorMethod · 0.95

Calls 5

_restrictCursorMethod · 0.95
_eraseAttrDataMethod · 0.95
spliceMethod · 0.80
getBlankLineMethod · 0.80
markRangeDirtyMethod · 0.45

Tested by

no test coverage detected