Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-17 05:19:41 -0400
committerLars Vogel2019-06-17 05:19:41 -0400
commit90106a4878f52e85f9c9d3b799add2c270573a8e (patch)
treef5af857a50771c4504b931a820882e39b4b8df0b
parent1e85f9c9c33e8d3b31e6dbe2d1ce40182a041857 (diff)
downloadeclipse.platform.team-90106a4878f52e85f9c9d3b799add2c270573a8e.tar.gz
eclipse.platform.team-90106a4878f52e85f9c9d3b799add2c270573a8e.tar.xz
eclipse.platform.team-90106a4878f52e85f9c9d3b799add2c270573a8e.zip
Remove redundant block
Change-Id: I53a2acd3a48b5cbecf353ba1f26d87dd034f4751 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-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