aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2014-12-29 15:16:46 +0000
committerStephen Blott2014-12-29 15:16:46 +0000
commitba743054dcd26b225db407db261e480ab485e2d0 (patch)
tree60eb4400ee55a42fa9b3fecd60ab0893c62d3b53 /background_scripts
parent25473c3dea3d847d36bda9c56a190dd3b0e5a43f (diff)
parent5c750bb10104aeef8fff6131e24b2889619c3ab7 (diff)
downloadvimium-ba743054dcd26b225db407db261e480ab485e2d0.tar.bz2
Merge pull request #1384 from smblott-github/fix-search-custom-search-engine-support
Uniform treatment of search queries
Diffstat (limited to 'background_scripts')
-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 dc5519d5..d62f82fe 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, queryTerms[1..].join(" "))
+ searchEngineMatch = searchEngineMatch.replace(/%s/g, Utils.createSearchQuery queryTerms[1..])
suggestion = new Suggestion(queryTerms, "search", searchEngineMatch, queryTerms[0] + ": " + queryTerms[1..].join(" "), @computeRelevancy)
suggestions.push(suggestion)
onComplete(suggestions)