Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeSourceViewer.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeSourceViewer.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeSourceViewer.java
index 14b092e4c..98d1faefb 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeSourceViewer.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeSourceViewer.java
@@ -301,14 +301,12 @@ public class MergeSourceViewer implements ISelectionChangedListener,
StyledText widget= MergeSourceViewer.this.getSourceViewer().getTextWidget();
widget.setRedraw(false);
- {
- adjustHighlightRange(revealStart, revealLength);
- MergeSourceViewer.this.getSourceViewer().revealRange(revealStart, revealLength);
+ adjustHighlightRange(revealStart, revealLength);
+ MergeSourceViewer.this.getSourceViewer().revealRange(revealStart, revealLength);
- MergeSourceViewer.this.getSourceViewer().setSelectedRange(selectionStart, selectionLength);
+ MergeSourceViewer.this.getSourceViewer().setSelectedRange(selectionStart, selectionLength);
- markInNavigationHistory();
- }
+ markInNavigationHistory();
widget.setRedraw(true);
}

Back to the top