More some of Terminal.resize into bufferservice

This commit is contained in:
Daniel Imms
2020-04-25 20:52:59 -07:00
parent a3ac0d542d
commit eba372e2cc
2 changed files with 2 additions and 3 deletions
-3
View File
@@ -1292,10 +1292,7 @@ export class Terminal extends CoreTerminal implements ITerminal, IInputHandlingT
if (x < MINIMUM_COLS) x = MINIMUM_COLS;
if (y < MINIMUM_ROWS) y = MINIMUM_ROWS;
this.buffers.resize(x, y);
this._bufferService.resize(x, y);
this.buffers.setupTabStops(this.cols);
this._charSizeService?.measure();
+2
View File
@@ -30,6 +30,8 @@ export class BufferService implements IBufferService {
public resize(cols: number, rows: number): void {
this.cols = cols;
this.rows = rows;
this.buffers.resize(cols, rows);
this.buffers.setupTabStops(this.cols);
}
public reset(): void {