WI-6515 Application not responding

Using the check condition that is guaranteed to avoid endless loop
This commit is contained in:
Denis Zhdanov
2011-06-01 18:57:02 +04:00
parent 3af350eb54
commit 4eefb353dd
@@ -357,7 +357,7 @@ public class IndentsPass extends TextEditorHighlightingPass implements DumbAware
}
else {
int startLine = line;
while (line < lineIndents.length && lineIndents[line] == -1) {
while (line < lineIndents.length && lineIndents[line] < 0) {
//noinspection AssignmentToForLoopParameter
line++;
}