Skip to content

Commit

Permalink
Merge pull request #5102 from Tyriar/tyriar/dec
Browse files Browse the repository at this point in the history
Ensure decorations are refreshed when origin of scroll event is buffe…
  • Loading branch information
Tyriar authored Jul 11, 2024
2 parents cbcd195 + e9fd5c7 commit 618e472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/browser/CoreBrowserTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,10 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
this.register(this.onFocus(() => this._renderService!.handleFocus()));

this._viewport = this.register(this._instantiationService.createInstance(Viewport, this.element, this.screenElement));
this.register(this._viewport.onRequestScrollLines(e => super.scrollLines(e, false)));
this.register(this._viewport.onRequestScrollLines(e => {
super.scrollLines(e, false);
this.refresh(0, this.rows - 1);
}));

this._selectionService = this.register(this._instantiationService.createInstance(SelectionService,
this.element,
Expand Down

0 comments on commit 618e472

Please sign in to comment.