Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
index 02f6f02f1..7a05cb915 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
@@ -1,11 +1,11 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 IBM Corporation and others.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
@@ -355,10 +355,6 @@ public class IndentFoldingStrategy implements IReconcilingStrategy, IReconciling
// be sure project has not been disabled
if (projectionAnnotationModel != null) {
// workaround for Platform Bug 299416
- int offset = dirtyRegion.getOffset();
- if (offset > 0) {
- offset--;
- }
annoIter = projectionAnnotationModel.getAnnotationIterator(0, document.getLength(), false, false);
}
return annoIter;

Back to the top