fix error in resize

This commit is contained in:
Jörg Breitbart
2018-09-01 05:31:32 +02:00
parent 284b083274
commit 76edd8a3bb
2 changed files with 1114 additions and 2 deletions
+1 -2
View File
@@ -100,7 +100,6 @@ const enum Cell {
SIZE = 3 SIZE = 3
} }
/** /**
* Typed array based bufferline implementation. * Typed array based bufferline implementation.
* Note: Unlike the JS variant the access to the data * Note: Unlike the JS variant the access to the data
@@ -211,7 +210,7 @@ export class BufferLine implements IBufferLine {
} else if (shrink) { } else if (shrink) {
if (cols) { if (cols) {
const data = new Uint32Array(cols * Cell.SIZE); const data = new Uint32Array(cols * Cell.SIZE);
data.set(this._data.subarray(0, this.length)); data.set(this._data.subarray(0, cols * Cell.SIZE));
this._data = data; this._data = data;
} else { } else {
this._data = null; this._data = null;
+1113
View File
File diff suppressed because it is too large Load Diff