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:
Daniel Imms
2017-08-08 12:59:02 -07:00
parent a28d9f1456
commit bb526aaa88
5 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export interface ITerminal {
emit(event: string, data: any);
reset(): void;
showCursor(): void;
blankLine(cur?: boolean, isWrapped?: boolean);
blankLine(cur?: boolean, isWrapped?: boolean, cols?: number);
}
export interface IBuffer {