More some of Terminal.resize into bufferservice
This commit is contained in:
@@ -1292,10 +1292,7 @@ export class Terminal extends CoreTerminal implements ITerminal, IInputHandlingT
|
|||||||
if (x < MINIMUM_COLS) x = MINIMUM_COLS;
|
if (x < MINIMUM_COLS) x = MINIMUM_COLS;
|
||||||
if (y < MINIMUM_ROWS) y = MINIMUM_ROWS;
|
if (y < MINIMUM_ROWS) y = MINIMUM_ROWS;
|
||||||
|
|
||||||
this.buffers.resize(x, y);
|
|
||||||
|
|
||||||
this._bufferService.resize(x, y);
|
this._bufferService.resize(x, y);
|
||||||
this.buffers.setupTabStops(this.cols);
|
|
||||||
|
|
||||||
this._charSizeService?.measure();
|
this._charSizeService?.measure();
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export class BufferService implements IBufferService {
|
|||||||
public resize(cols: number, rows: number): void {
|
public resize(cols: number, rows: number): void {
|
||||||
this.cols = cols;
|
this.cols = cols;
|
||||||
this.rows = rows;
|
this.rows = rows;
|
||||||
|
this.buffers.resize(cols, rows);
|
||||||
|
this.buffers.setupTabStops(this.cols);
|
||||||
}
|
}
|
||||||
|
|
||||||
public reset(): void {
|
public reset(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user