Reindex brackets if there is invalid offset

Fixes #1940
This commit is contained in:
Jakub Valtar
2015-11-09 13:56:28 +01:00
parent 129ffb5f6c
commit 925306d95f
+1 -1
View File
@@ -51,7 +51,7 @@ public class Brackets {
return -1;
}
if (offsets == null)
if (offsets == null || offsets.get(offsets.size()-1) >= text.length())
parse(text);
// find this bracket