Skip to content

Commit dc0c1eb

Browse files
author
Matthias Seiffert
committed
Resize terminal process after resizing widget
Resize the terminal process in the debounced doResizeTerminal (after the terminal widget has the new size). Contributed on behalf of Elektrobit Automotive GmbH Signed-off-by: Matthias Seiffert <[email protected]>
1 parent 90211ed commit dc0c1eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/terminal/src/browser/terminal-widget-impl.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,6 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
611611
if (this.needsResize) {
612612
this.resizeTerminal();
613613
this.needsResize = false;
614-
615-
this.resizeTerminalProcess();
616614
}
617615
}
618616

@@ -797,6 +795,8 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
797795
const cols = geo.cols;
798796
const rows = geo.rows - 1; // subtract one row for margin
799797
this.term.resize(cols, rows);
798+
799+
this.resizeTerminalProcess();
800800
}
801801

802802
protected resizeTerminalProcess(): void {

0 commit comments

Comments
 (0)