From 185a05d759fee8636c489196c9ab251126c1d069 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 12 Aug 2013 09:04:20 -0500 Subject: [PATCH] rename bgChar. --- lib/widget.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index 439e49f..00a2040 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -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;