fix: reset window on data realloc

This commit is contained in:
cha0s 2022-09-15 10:22:02 -05:00
parent 39a681dba4
commit b2d3e87c35

View File

@ -28,6 +28,8 @@ export default class FlatComponent extends BaseComponent {
const data = new ArrayBuffer(size);
(new Uint8Array(data)).set(this.data);
this.data = data;
this.Window = undefined;
this.window = undefined;
}
for (let i = 0; i < count; ++i) {
results.push(this.caret++);