aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-12-28 16:30:11 +0000
committerStephen Blott2014-12-28 16:30:11 +0000
commit652a301f70d43a1dc6ce44ae80c53af36e851945 (patch)
treee5f990e69cecce3d860dbd01f534c2ff3b015e46
parentb64ee6e26fedfd891b34d18eb84187da50163767 (diff)
downloadvimium-652a301f70d43a1dc6ce44ae80c53af36e851945.tar.bz2
Use + as separator for search engines.
-rw-r--r--background_scripts/completion.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index 9d5f8780..3b38faf8 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -327,7 +327,7 @@ class SearchEngineCompleter
searchEngineMatch = this.getSearchEngineMatches(queryTerms[0])
suggestions = []
if searchEngineMatch
- searchEngineMatch = searchEngineMatch.replace(/%s/g, encodeURIComponent queryTerms[1..].join(" "))
+ searchEngineMatch = searchEngineMatch.replace(/%s/g, queryTerms[1..].join("+"))
suggestion = new Suggestion(queryTerms, "search", searchEngineMatch, queryTerms[0] + ": " + queryTerms[1..].join(" "), @computeRelevancy)
suggestions.push(suggestion)
onComplete(suggestions)