diff --git a/lib/widget.js b/lib/widget.js index 27806ea..bc6ce42 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -1494,6 +1494,13 @@ Element.prototype.parseContent = function() { || this._clines.width !== width || this._clines.content !== this.content) { var content = this.content; + // Possibly keep this for set/get/insert/etcLine + // Although, it may not work since the lines handled + // by those methods need to be wrapped. If the line + // indexes were only within the context of the box + // (e.g. line 0 is always the top of the box) like they + // were before, this may be feasible. + // this._oclines = content.split('\n'); // Could move these 2 lines back to setContent (?) content = content.replace(/\x1b(?!\[[\d;]*m)/g, ''); content = this._parseTags(content || '');