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

Method insertLines

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

Source from the content-addressed store, hash-verified

2974 return this._dirtyRowTracker.markDirty(this._activeBuffer.y), true;
2975 }
2976 insertLines(e3) {
2977 this._restrictCursor();
2978 let t3 = e3.params[0] || 1;
2979 if (this._activeBuffer.y > this._activeBuffer.scrollBottom || this._activeBuffer.y < this._activeBuffer.scrollTop) return true;
2980 const i3 = this._activeBuffer.ybase + this._activeBuffer.y, s3 = this._bufferService.rows - 1 - this._activeBuffer.scrollBottom, r2 = this._bufferService.rows - 1 + this._activeBuffer.ybase - s3 + 1;
2981 for (; t3--; ) this._activeBuffer.lines.splice(r2 - 1, 1), this._activeBuffer.lines.splice(i3, 0, this._activeBuffer.getBlankLine(this._eraseAttrData()));
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;

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