mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
js/matrix.js: disable irresponsibly obnoxious automatic cutoff `feature.'
js/clipboard.js: increase default cutoff warning threshold to 425.
This commit is contained in:
parent
0f8b211517
commit
2da7965c99
@ -184,10 +184,10 @@ var clipboard = (function () {
|
|||||||
output = canvas.ascii()
|
output = canvas.ascii()
|
||||||
break
|
break
|
||||||
case 'mirc':
|
case 'mirc':
|
||||||
output = canvas.mirc({cutoff: 400})
|
output = canvas.mirc({cutoff: 425})
|
||||||
break
|
break
|
||||||
case 'irssi':
|
case 'irssi':
|
||||||
output = canvas.irssi({cutoff: 400})
|
output = canvas.irssi({cutoff: 425})
|
||||||
break
|
break
|
||||||
case 'ansi':
|
case 'ansi':
|
||||||
output = canvas.ansi()
|
output = canvas.ansi()
|
||||||
|
@ -283,7 +283,6 @@ Matrix.prototype.mirc = function (opts) {
|
|||||||
})
|
})
|
||||||
if (opts && opts.cutoff && line.length > opts.cutoff) {
|
if (opts && opts.cutoff && line.length > opts.cutoff) {
|
||||||
cutoff = true
|
cutoff = true
|
||||||
return line.substr(0, opts.cutoff)
|
|
||||||
}
|
}
|
||||||
return line
|
return line
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user