fix error in resize
This commit is contained in:
+1
-2
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user