Skip to content

Commit 18262c8

Browse files
authored
Merge pull request #5761 from SergioChan/fix/textarea-sync-on-resize-3390
fix: sync helper textarea position after resize
2 parents af6731b + 5302e62 commit 18262c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/browser/CoreBrowserTerminal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,10 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
573573
this._renderService!.handleCursorMove();
574574
this._syncTextArea();
575575
}));
576-
this._register(this.onResize(() => this._renderService!.handleResize(this.cols, this.rows)));
576+
this._register(this.onResize(() => {
577+
this._renderService!.handleResize(this.cols, this.rows);
578+
this._syncTextArea();
579+
}));
577580
this._register(this.onBlur(() => this._renderService!.handleBlur()));
578581
this._register(this.onFocus(() => this._renderService!.handleFocus()));
579582

0 commit comments

Comments
 (0)