assets/js/matrix.js:Matrix.prototype.mirc(): don't assume default foreground colour (via spoke.)

This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-07-13 23:53:24 +02:00
parent fd71785b3b
commit b4e2286ecc

View File

@ -244,7 +244,7 @@ Matrix.prototype.mirc = function (opts) {
var lines = this.aa.map(function(row, y){ var lines = this.aa.map(function(row, y){
var last, line = "" var last, line = ""
row.forEach(function(lex, x) { row.forEach(function(lex, x) {
var bg_ = -1, fg_ = 15 var bg_ = -1, fg_ = -1
if (lex.eqColor(last)) { if (lex.eqColor(last)) {
line += lex.sanitize() line += lex.sanitize()
} }