diff options
| author | Stephen Blott | 2015-05-11 16:26:01 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-11 17:08:17 +0100 | 
| commit | c2c744b1962af4413722ce468fe3e555fff8496e (patch) | |
| tree | 4c015cfc2e82b4645c125ee1db824998712b10cb /background_scripts/completion_search.coffee | |
| parent | 7f0736ee48c80e33ec8d7ef52e1a713501281f72 (diff) | |
| download | vimium-c2c744b1962af4413722ce468fe3e555fff8496e.tar.bz2 | |
Search completion; fix typos and small bugs.
Bugs:
  - The serch-engine completer wasn't being configured correctly for the
    case when we don't have a completion engine.
  - Handle Control-Shift-Left/Right in vomnibar.
Also: better comments.
Diffstat (limited to 'background_scripts/completion_search.coffee')
| -rw-r--r-- | background_scripts/completion_search.coffee | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/background_scripts/completion_search.coffee b/background_scripts/completion_search.coffee index 2d2ee439..b6514cd2 100644 --- a/background_scripts/completion_search.coffee +++ b/background_scripts/completion_search.coffee @@ -2,7 +2,7 @@  CompletionSearch =    debug: false    inTransit: {} -  completionCache: new SimpleCache 2 * 60 * 60 * 1000, 5000 # Two hour, 5000 entries. +  completionCache: new SimpleCache 2 * 60 * 60 * 1000, 5000 # Two hours, 5000 entries.    engineCache:new SimpleCache 1000 * 60 * 60 * 1000 # 1000 hours.    # The amount of time to wait for new requests before launching the current request (for example, if the user @@ -35,7 +35,7 @@ CompletionSearch =      not @lookupEngine(searchUrl).dummy    # This is the main entry point. -  #  - searchUrl is the search engine's URL, e.g. Settings.get("searchUrl"), or a custome search engine's URL. +  #  - searchUrl is the search engine's URL, e.g. Settings.get("searchUrl"), or a custom search engine's URL.    #    This is only used as a key for determining the relevant completion engine.    #  - queryTerms are the query terms.    #  - callback will be applied to a list of suggestion strings (which may be an empty list, if anything goes @@ -82,7 +82,6 @@ CompletionSearch =        if reusePreviousSuggestions          console.log "reuse previous query:", @mostRecentQuery if @debug -        @mostRecentQuery = queryTerms.join " "          return callback @completionCache.set completionCacheKey, @mostRecentSuggestions      # That's all of the caches we can try.  Bail if the caller is looking for synchronous results.  | 
