fix: reset window on data realloc
This commit is contained in:
parent
39a681dba4
commit
b2d3e87c35
|
@ -28,6 +28,8 @@ export default class FlatComponent extends BaseComponent {
|
||||||
const data = new ArrayBuffer(size);
|
const data = new ArrayBuffer(size);
|
||||||
(new Uint8Array(data)).set(this.data);
|
(new Uint8Array(data)).set(this.data);
|
||||||
this.data = data;
|
this.data = data;
|
||||||
|
this.Window = undefined;
|
||||||
|
this.window = undefined;
|
||||||
}
|
}
|
||||||
for (let i = 0; i < count; ++i) {
|
for (let i = 0; i < count; ++i) {
|
||||||
results.push(this.caret++);
|
results.push(this.caret++);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user