aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/completion.coffee')
-rw-r--r--background_scripts/completion.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee
index bf88f10e..db151bed 100644
--- a/background_scripts/completion.coffee
+++ b/background_scripts/completion.coffee
@@ -232,7 +232,8 @@ class DomainCompleter
domains: null
filter: ({ queryTerms, query }, onComplete) ->
- return onComplete [] unless queryTerms.length == 1 and not /\s$/.test query
+ # Do not offer completions if the query is empty, or if the user has finished typing the first word.
+ return onComplete [] if queryTerms.length == 0 or /\S\s/.test query
if @domains
@performSearch(queryTerms, onComplete)
else