From 0cc52708df1f89cfd87c93bb9d8589746c720ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 21 Nov 2018 15:50:07 +0100 Subject: [PATCH] js/matrix.js: disable irresponsibly obnoxious automatic cutoff `feature.' js/clipboard.js: increase default cutoff warning threshold to 425. --- js/clipboard.js | 4 ++-- js/matrix.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/clipboard.js b/js/clipboard.js index 4831b7e..98a2f34 100644 --- a/js/clipboard.js +++ b/js/clipboard.js @@ -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() diff --git a/js/matrix.js b/js/matrix.js index 8520c2a..0ec4ec5 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -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 })