MCPcopy Index your code
hub / github.com/banga/git-split-diffs / fillWidth

Method fillWidth

src/SpannedString.ts:165–171  ·  view source on GitHub ↗
(width: number, fillString?: string)

Source from the content-addressed store, hash-verified

163 }
164
165 fillWidth(width: number, fillString?: string) {
166 const paddingLength = width - this.getWidth();
167 if (paddingLength > 0) {
168 this.appendString(''.padEnd(paddingLength, fillString));
169 }
170 return this;
171 }
172
173 getString(): string {
174 return this._string;

Callers 2

iterFitTextToWidthFunction · 0.80
getContextForConfigFunction · 0.80

Calls 2

getWidthMethod · 0.95
appendStringMethod · 0.95

Tested by

no test coverage detected