Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-01-20 17:13:29 +0000
committerDani Megert2003-01-20 17:13:29 +0000
commitd93077f6c942065c2351b4001176764f6ce1998a (patch)
treecb1951020b2b8f10766434e4820ffbb9da7c1336 /org.eclipse.text
parent5acd7eddf58b3894e7b5824712df4e917d9d1007 (diff)
downloadeclipse.platform.text-d93077f6c942065c2351b4001176764f6ce1998a.tar.gz
eclipse.platform.text-d93077f6c942065c2351b4001176764f6ce1998a.tar.xz
eclipse.platform.text-d93077f6c942065c2351b4001176764f6ce1998a.zip
Fixed bug: 29706: IllegalArgumentException using content assist
Diffstat (limited to 'org.eclipse.text')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/ChildDocumentManager.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/ChildDocumentManager.java b/org.eclipse.text/src/org/eclipse/jface/text/ChildDocumentManager.java
index c5f5f67e4da..a9f945c3fce 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/ChildDocumentManager.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/ChildDocumentManager.java
@@ -88,16 +88,15 @@ public final class ChildDocumentManager implements IDocumentListener, ISlaveDocu
* than kept stable.
*/
protected void adaptToInsert() {
+
+ int myStart= fPosition.offset;
+ int myEnd= fPosition.offset + fPosition.length;
- if (fLength != 0) {
+ if (fLength != 0 && fOffset < myEnd) {
super.adaptToInsert();
return;
}
- int myStart= fPosition.offset;
- int myEnd= fPosition.offset + fPosition.length;
- myEnd= Math.max(myStart, myEnd);
-
int yoursStart= fOffset;
int yoursEnd= fOffset + fReplaceLength -1;
yoursEnd= Math.max(yoursStart, yoursEnd);

Back to the top