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

Method trimStart

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

Source from the content-addressed store, hash-verified

2407 } else this._length += i3.length;
2408 }
2409 trimStart(e3) {
2410 e3 > this._length && (e3 = this._length), this._startIndex += e3, this._length -= e3, this.onTrimEmitter.fire(e3);
2411 }
2412 shiftElements(e3, t3, i3) {
2413 if (!(t3 <= 0)) {
2414 if (e3 < 0 || e3 >= this._length) throw new Error("start argument out of range");

Callers 15

StickyTrackerFunction · 0.80
extractSnippetFunction · 0.80
stripSystemRemindersFunction · 0.80
GlobalSearchDialogFunction · 0.80
PromptInputFunction · 0.80
processElementsFunction · 0.80
getWrappedTextMethod · 0.80
getOffsetFromPositionMethod · 0.80
getPositionFromOffsetMethod · 0.80
findTokenBudgetPositionsFunction · 0.80
getStdoutMethod · 0.80

Calls 1

fireMethod · 0.80

Tested by

no test coverage detected