use bch properly.

This commit is contained in:
Christopher Jeffrey 2013-10-16 06:51:14 -05:00
parent c8116f6569
commit 1451077f12
1 changed files with 3 additions and 3 deletions

View File

@ -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;
// }
}
}