From 1451077f12ed13918a773e0fbac84213ced147b2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 16 Oct 2013 06:51:14 -0500 Subject: [PATCH] use bch properly. --- lib/widget.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index 274ec75..e5339e6 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -3066,7 +3066,7 @@ Element.prototype.render = function() { // To deal with this, we can just fill the whole thing // ahead of time. This could be optimized. if (this.tpadding || (this.valign && this.valign !== 'top')) { - this.screen.fillRegion(dattr, ' ', xi, xl, yi, yl); + this.screen.fillRegion(dattr, bch, xi, xl, yi, yl); } if (this.tpadding) { @@ -3119,7 +3119,7 @@ Element.prototype.render = function() { } // Handle newlines. - if (ch === '\t') ch = ' '; + if (ch === '\t') ch = bch; if (ch === '\n') { // If we're on the first cell and we find a newline and the last cell // of the last line was not a newline, let's just treat this like the @@ -3152,7 +3152,7 @@ Element.prototype.render = function() { // if (wideChars.test(ch)) { // x++; // lines[y][x][0] = attr; - // lines[y][x][1] = ' '; + // lines[y][x][1] = bch; // } } }