Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,8 @@ public void setVisibleRegion(int start, int length) {
if (document == null) {
return;
}
int topIndex= redraws() ? getTopIndex() : -1;
setRedraw(false);
try {
// If the visible region changes, make sure collapsed regions outside of the old visible regions are expanded
// and collapse everything outside the new visible region
Expand All @@ -782,6 +784,8 @@ public void setVisibleRegion(int start, int length) {
} catch (BadLocationException e) {
ILog log= ILog.of(getClass());
log.log(new Status(IStatus.WARNING, getClass(), IStatus.OK, null, e));
} finally {
setRedraw(true, topIndex);
}
}

Expand Down
Loading