Refresh viewport after clear or ED

Fixes #5327
This commit is contained in:
Daniel Imms
2025-04-21 07:00:27 -07:00
parent a260f7d288
commit e9587cf68f
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -532,7 +532,13 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
this.textarea!.focus();
this.textarea!.select();
}));
this._register(this._onScroll.event(() => this._selectionService!.refresh()));
this._register(Event.any(
this._onScroll.event,
this._inputHandler.onScroll
)(() => {
this._selectionService!.refresh();
this._viewport?.queueSync();
}));
this._register(this._instantiationService.createInstance(BufferDecorationRenderer, this.screenElement));
this._register(addDisposableListener(this.element, 'mousedown', (e: MouseEvent) => this._selectionService!.handleMouseDown(e)));