mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
assets/js/matrix.js:Matrix.prototype.{ansi,mirc}(): only reset {bg,fg}_ when processing a new row vs. new cell (via spoke.)
This commit is contained in:
parent
2efca3371f
commit
f63ee53191
@ -241,9 +241,8 @@ Matrix.prototype.ascii = function () {
|
||||
}
|
||||
Matrix.prototype.ansi = function (opts) {
|
||||
var lines = this.aa.map(function(row, y){
|
||||
var last, line = ""
|
||||
var last, line = "", bg_ = -1, fg_ = -1
|
||||
row.forEach(function(lex, x) {
|
||||
var bg_ = -1, fg_ = -1
|
||||
if (lex.eqColor(last)) {
|
||||
line += lex.sanitize()
|
||||
}
|
||||
@ -262,9 +261,8 @@ Matrix.prototype.ansi = function (opts) {
|
||||
Matrix.prototype.mirc = function (opts) {
|
||||
var cutoff = false
|
||||
var lines = this.aa.map(function(row, y){
|
||||
var last, line = ""
|
||||
var last, line = "", bg_ = -1, fg_ = -1
|
||||
row.forEach(function(lex, x) {
|
||||
var bg_ = -1, fg_ = -1
|
||||
if (lex.eqColor(last)) {
|
||||
line += lex.sanitize()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user