rename bgChar.
This commit is contained in:
parent
4b6cf96030
commit
185a05d759
|
@ -1767,7 +1767,7 @@ function Element(options) {
|
|||
this.wrap = options.wrap !== false;
|
||||
this.shrink = options.shrink;
|
||||
this.fixed = options.fixed;
|
||||
this.bgChar = options.bgChar || ' ';
|
||||
this.ch = options.ch || ' ';
|
||||
|
||||
if (typeof options.padding === 'number' || !options.padding) {
|
||||
options.padding = {
|
||||
|
@ -3000,7 +3000,7 @@ Element.prototype.render = function() {
|
|||
, rtop
|
||||
, visible
|
||||
, i
|
||||
, bgChar = this.bgChar;
|
||||
, bch = this.ch;
|
||||
|
||||
if (coords.base >= this._clines.ci.length) {
|
||||
ci = this._pcontent.length;
|
||||
|
@ -3053,7 +3053,7 @@ Element.prototype.render = function() {
|
|||
cell = lines[y][x];
|
||||
if (!cell) break;
|
||||
|
||||
ch = content[ci++] || bgChar;
|
||||
ch = content[ci++] || bch;
|
||||
|
||||
// Handle escape codes.
|
||||
while (ch === '\x1b') {
|
||||
|
@ -3065,7 +3065,7 @@ Element.prototype.render = function() {
|
|||
&& this.parent.items[this.parent.selected] === this) {
|
||||
attr = (attr & ~(0x1ff << 9)) | (dattr & (0x1ff << 9));
|
||||
}
|
||||
ch = content[ci] || bgChar;
|
||||
ch = content[ci] || bch;
|
||||
ci++;
|
||||
} else {
|
||||
break;
|
||||
|
@ -3084,7 +3084,7 @@ Element.prototype.render = function() {
|
|||
}
|
||||
// We could use fillRegion here, name the
|
||||
// outer loop, and continue to it instead.
|
||||
ch = bgChar;
|
||||
ch = bch;
|
||||
for (; x < xl; x++) {
|
||||
cell = lines[y][x];
|
||||
if (!cell) break;
|
||||
|
|
Loading…
Reference in New Issue