Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2016-03-29 10:33:41 +0000
committerDani Megert2016-03-29 10:33:41 +0000
commit650155d956f9868d6710b0bfc7d6155f5404a8de (patch)
treec50615b2719d642f0fdce655d4d272fb64be455d
parentac46cc6e90e88ad5a453f20648b48fb4182c117e (diff)
downloadeclipse.platform.text-650155d956f9868d6710b0bfc7d6155f5404a8de.tar.gz
eclipse.platform.text-650155d956f9868d6710b0bfc7d6155f5404a8de.tar.xz
eclipse.platform.text-650155d956f9868d6710b0bfc7d6155f5404a8de.zip
Polished fix for bug 382953: [implementation] FastPartitioner broken for changes in the first partitionY20160331-1000I20160330-1230I20160330-0930I20160329-0800
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java
index 67be4b81d98..b55c2c1c36e 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -306,7 +306,6 @@ public class FastPartitioner implements IDocumentPartitioner, IDocumentPartition
if (partition.includes(reparseStart)) {
partitionStart= partition.getOffset();
contentType= partition.getType();
- // Invalid optimization we need to reparse the complete partition to check if it is still valid (see bug 382953)
reparseStart= partitionStart;
-- first;
} else if (reparseStart == e.getOffset() && reparseStart == partition.getOffset() + partition.getLength()) {
@@ -319,8 +318,8 @@ public class FastPartitioner implements IDocumentPartitioner, IDocumentPartition
contentType= IDocument.DEFAULT_CONTENT_TYPE;
}
} else {
- partitionStart = 0;
- reparseStart = 0;
+ partitionStart= 0;
+ reparseStart= 0;
}
fPositionUpdater.update(e);

Back to the top