fixed potential soft lock when quote length is -1

This commit is contained in:
Miodec 2021-03-18 03:30:07 +00:00
parent 6fb0991ecf
commit ae211bface

View file

@ -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([]);