js/matrix.js: disable irresponsibly obnoxious automatic cutoff `feature.'

js/clipboard.js: increase default cutoff warning threshold to 425.
This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-11-21 15:50:07 +01:00
parent 0f8b211517
commit 2da7965c99
2 changed files with 2 additions and 3 deletions

View File

@ -184,10 +184,10 @@ var clipboard = (function () {
output = canvas.ascii()
break
case 'mirc':
output = canvas.mirc({cutoff: 400})
output = canvas.mirc({cutoff: 425})
break
case 'irssi':
output = canvas.irssi({cutoff: 400})
output = canvas.irssi({cutoff: 425})
break
case 'ansi':
output = canvas.ansi()

View File

@ -283,7 +283,6 @@ Matrix.prototype.mirc = function (opts) {
})
if (opts && opts.cutoff && line.length > opts.cutoff) {
cutoff = true
return line.substr(0, opts.cutoff)
}
return line
})