Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-10-20 15:59:38 +0000
committerDani Megert2003-10-20 15:59:38 +0000
commit983d635e5057fc91baa475df91df11077ad04f3f (patch)
tree0fc37939296c4196dc490d667a30b8cd1bf8da40
parent6f2370deb94249142db39941fbb6e9d39e27e135 (diff)
downloadeclipse.platform.text-983d635e5057fc91baa475df91df11077ad04f3f.tar.gz
eclipse.platform.text-983d635e5057fc91baa475df91df11077ad04f3f.tar.xz
eclipse.platform.text-983d635e5057fc91baa475df91df11077ad04f3f.zip
Fixed bug 44991: [find/replace] replace regular expression $ - Hangs
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java2
1 files changed, 1 insertions, 1 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 5dc0a4a89..40e66f75a 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
@@ -194,7 +194,7 @@ public class FindReplaceDocumentAdapter implements CharSequence {
fFindReplaceState= operationCode;
- if (found) {
+ if (found && fFindReplaceMatcher.group().length() > 0) {
return new Region(fFindReplaceMatcher.start(), fFindReplaceMatcher.group().length());
} else {
return null;

Back to the top