make cols mandatory in BufferLine ctor

This commit is contained in:
Jörg Breitbart
2018-09-01 00:18:52 +02:00
parent f3561fad30
commit 024404f548
4 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export class BufferLineOld implements IBufferLine {
public isWrapped = false;
public length: number;
constructor(cols?: number, ch?: CharData, isWrapped?: boolean) {
constructor(cols: number, ch?: CharData, isWrapped?: boolean) {
this._data = [];
this.length = this._data.length;
if (cols) {
@@ -111,7 +111,7 @@ export class BufferLine implements IBufferLine {
protected _combined: {[index: number]: string} = {};
public length: number;
constructor(cols?: number, ch?: CharData, public isWrapped: boolean = false) {
constructor(cols: number, ch?: CharData, public isWrapped: boolean = false) {
this.length = cols || 0;
if (cols) {
if (!ch) {