fix skipSpace: EOL is a space too

This commit is contained in:
tophf 2019-09-24 14:34:41 +03:00
parent f29b72f1f4
commit 415c218863

View File

@ -543,6 +543,11 @@ function createAppliesToLineWidget(cm) {
ch++;
lookForEnd = false;
}
// EOL is a whitespace so we'll check the next line
if (ch >= text.length) {
ch = 0;
return;
}
RX_SPACE.lastIndex = ch;
const m = RX_SPACE.exec(text);
if (!m) {