mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-22 20:36:37 +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
50b7e9c279
commit
66fb77b9b5
@ -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