mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[^ann] ensure we'll exit while (true) loop at some moment (IDEA-94968 Idea hung)
(cherry-picked from a46bad5)
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ public class NaturalLanguageTextSelectioner extends ExtendWordSelectionHandlerBa
|
||||
result.add(range);
|
||||
while (true) {
|
||||
TextRange next = expandSelection(e, editorText, range.getStartOffset(), range.getEndOffset());
|
||||
if (next == null || next.equals(range)) {
|
||||
if (next == null || range.contains(next)) {
|
||||
break;
|
||||
}
|
||||
result.add(next);
|
||||
|
||||
Reference in New Issue
Block a user