revert to precheck pushWouldTrim

This commit is contained in:
Jörg Breitbart
2018-10-30 17:40:11 +01:00
parent aaffc2b2be
commit fb64c527a5
7 changed files with 25 additions and 46 deletions
+2 -4
View File
@@ -94,11 +94,10 @@ export class BufferLine implements IBufferLine {
}
}
public copyFrom(line: BufferLine): IBufferLine {
public copyFrom(line: BufferLine): void {
this._data = line._data.slice(0);
this.length = line.length;
this.isWrapped = line.isWrapped;
return this;
}
public clone(): IBufferLine {
@@ -249,7 +248,7 @@ export class BufferLineTypedArray implements IBufferLine {
}
/** alter to a full copy of line */
public copyFrom(line: BufferLineTypedArray): IBufferLine {
public copyFrom(line: BufferLineTypedArray): void {
if (this.length !== line.length) {
this._data = new Uint32Array(line._data);
} else {
@@ -262,7 +261,6 @@ export class BufferLineTypedArray implements IBufferLine {
this._combined[el] = line._combined[el];
}
this.isWrapped = line.isWrapped;
return this;
}
/** create a new clone */