Fix exception when resizing both dimensions
This happened because buffers now resize themselves but they were relying on Terminal to give them a blank line. The blank line was coming back with the old columns value, causing an NPE. Fixes #860
This commit is contained in:
@@ -43,9 +43,10 @@ export class MockTerminal implements ITerminal {
|
||||
showCursor(): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
blankLine(cur?: boolean, isWrapped?: boolean) {
|
||||
blankLine(cur?: boolean, isWrapped?: boolean, cols?: number) {
|
||||
const line = [];
|
||||
for (let i = 0; i < this.cols; i++) {
|
||||
cols = cols || this.cols;
|
||||
for (let i = 0; i < cols; i++) {
|
||||
line.push([0, ' ', 1]);
|
||||
}
|
||||
return line;
|
||||
|
||||
Reference in New Issue
Block a user