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

Method repeatPrecedingCharacter

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

Source from the content-addressed store, hash-verified

3052 return t3 && (t3.replaceCells(this._activeBuffer.x, this._activeBuffer.x + (e3.params[0] || 1), this._activeBuffer.getNullCell(this._eraseAttrData())), this._dirtyRowTracker.markDirty(this._activeBuffer.y)), true;
3053 }
3054 repeatPrecedingCharacter(e3) {
3055 const t3 = this._parser.precedingJoinState;
3056 if (!t3) return true;
3057 const i3 = e3.params[0] || 1, s3 = p.UnicodeService.extractWidth(t3), r2 = this._activeBuffer.x - s3, n2 = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).getString(r2), o2 = new Uint32Array(n2.length * i3);
3058 let a2 = 0;
3059 for (let e4 = 0; e4 < n2.length; ) {
3060 const t4 = n2.codePointAt(e4) || 0;
3061 o2[a2++] = t4, e4 += t4 > 65535 ? 2 : 1;
3062 }
3063 let h2 = a2;
3064 for (let e4 = 1; e4 < i3; ++e4) o2.copyWithin(h2, 0, a2), h2 += a2;
3065 return this.print(o2, 0, h2), true;
3066 }
3067 sendDeviceAttributesPrimary(e3) {
3068 return e3.params[0] > 0 || (this._is("xterm") || this._is("rxvt-unicode") || this._is("screen") ? this._coreService.triggerDataEvent(n.C0.ESC + "[?1;2c") : this._is("linux") && this._coreService.triggerDataEvent(n.C0.ESC + "[?6c")), true;
3069 }

Callers 1

constructorMethod · 0.95

Calls 4

printMethod · 0.95
extractWidthMethod · 0.80
getStringMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected