mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid invalid regions
This commit is contained in:
@@ -262,6 +262,7 @@ public class LivePreview extends DocumentAdapter implements SearchResults.Search
|
||||
@Override
|
||||
public void run() {
|
||||
for (FoldRegion region : allRegions) {
|
||||
if (!region.isValid()) continue;
|
||||
if (cursor.intersects(TextRange.create(region))) {
|
||||
region.setExpanded(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user