Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2011-12-09 09:19:00 +0000
committerDani Megert2011-12-09 09:19:00 +0000
commit449fac0b6bca86cb839deb57f948dbb3b1cccb50 (patch)
treed4734619ab17af5e3af581e6481e8a9caa7e768d
parent9652ad7296f5ebc4cb54564e1a47def3a8f879c3 (diff)
downloadeclipse.platform.text-449fac0b6bca86cb839deb57f948dbb3b1cccb50.tar.gz
eclipse.platform.text-449fac0b6bca86cb839deb57f948dbb3b1cccb50.tar.xz
eclipse.platform.text-449fac0b6bca86cb839deb57f948dbb3b1cccb50.zip
Fixed bug 365789: [find/replace] Reverse Incremental Find from veryv20111209-0919
end-of-document broken
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
index e2772692382..4e46f245482 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 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
@@ -153,7 +153,7 @@ public class FindReplaceDocumentAdapter implements CharSequence {
return null;
// Validate start offset
- if (startOffset < 0 || startOffset >= length())
+ if (startOffset < 0 || startOffset > length())
throw new BadLocationException();
int patternFlags= 0;

Back to the top