Ensure viewport is correctly reset on term.reset

Part of #4603
This commit is contained in:
Daniel Imms
2023-08-02 11:18:00 -07:00
parent bb237f109a
commit acf53f69e0
4 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -1255,13 +1255,13 @@ export class Terminal extends CoreTerminal implements ITerminal {
super.reset();
this._selectionService?.reset();
this._decorationService.reset();
this.viewport?.reset();
// reattach
this._customKeyEventHandler = customKeyEventHandler;
// do a full screen refresh
this.refresh(0, this.rows - 1);
this.viewport?.syncScrollArea();
}
public clearTextureAtlas(): void {