Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2008-01-16 23:32:56 -0500
committerKen Ryall2008-01-16 23:32:56 -0500
commit7a795aedb25760cce5026ff671a6a240218de0d1 (patch)
treed11e9840f484d1d5acaac2339e1cc0d494cc17af
parentc589589a975f6f8d34666ba31f3fadbb04861b31 (diff)
downloadorg.eclipse.cdt-7a795aedb25760cce5026ff671a6a240218de0d1.tar.gz
org.eclipse.cdt-7a795aedb25760cce5026ff671a6a240218de0d1.tar.xz
org.eclipse.cdt-7a795aedb25760cce5026ff671a6a240218de0d1.zip
Bug 199609, ignore whitespace when searching.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPatternQuery.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPatternQuery.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPatternQuery.java
index 79c043df01..e60af6b1ae 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPatternQuery.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPatternQuery.java
@@ -81,7 +81,8 @@ public class PDOMSearchPatternQuery extends PDOMSearchQuery {
super(scope, flags);
this.scopeDesc = scopeDesc;
- this.patternStr = patternStr;
+ // remove spurious whitespace, which will make the search fail 100% of the time
+ this.patternStr = patternStr.trim();
// Parse the pattern string
List patternList = new ArrayList();

Back to the top