mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 03:25:45 +00:00
fix colors.js.
This commit is contained in:
parent
44b290b86c
commit
188561c9ca
@ -345,11 +345,11 @@ exports.ccolors = {
|
||||
Object.keys(exports.ccolors).forEach(function(name) {
|
||||
exports.ccolors[name].forEach(function(offset) {
|
||||
if (typeof offset === 'number') {
|
||||
cols[offset] = exports.colorNames[name];
|
||||
exports.ccolors[offset] = exports.colorNames[name];
|
||||
return;
|
||||
}
|
||||
var i = offset[0], l = offset[2];
|
||||
for (; i <= l; i++) cols[i] = exports.colorNames[name];
|
||||
for (; i <= l; i++) exports.ccolors[i] = exports.colorNames[name];
|
||||
});
|
||||
delete exports.ccolors[name];
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user