From ae211bface6c6bceea6bd9cd4ad2d95bf08f14fc Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 18 Mar 2021 03:30:07 +0000 Subject: [PATCH] fixed potential soft lock when quote length is -1 --- src/js/userconfig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/userconfig.js b/src/js/userconfig.js index 995a3ad1d..423a86add 100644 --- a/src/js/userconfig.js +++ b/src/js/userconfig.js @@ -765,6 +765,7 @@ function setTimeConfig(time, nosave) { function setQuoteLength(len, nosave, multipleMode) { if (Array.isArray(len)) { //config load + if (len.length === 1 && len[0] === -1) len = [1]; ConfigSet.quoteLength(len); } else { if (!Array.isArray(ConfigSet.quoteLength)) ConfigSet.quoteLength([]);