diff options
| author | Stephen Blott | 2015-05-28 15:56:18 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-28 15:56:21 +0100 | 
| commit | 45157bc460494503ca2b90caa762e72d224a1ef3 (patch) | |
| tree | f912e1536911fc8a783d31fb396d078144ec9d51 /background_scripts/completion.coffee | |
| parent | a975ce087c4beac442e5cfaeb7fb0510e54c82a4 (diff) | |
| download | vimium-45157bc460494503ca2b90caa762e72d224a1ef3.tar.bz2 | |
Custom-only: fix long-standing race condition.
In omni mode, the vomnibar suggestions are updated asynchronously.
Therefore, the contents of the primary custom search-engine suggestion
may be behind the actual contents of the comnibar input.  So, we
reconstruct the custom search-engine query on "enter".
(This fixes a long-standing race condition.)
Diffstat (limited to 'background_scripts/completion.coffee')
| -rw-r--r-- | background_scripts/completion.coffee | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index d8b946a1..60e5f1df 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -505,6 +505,7 @@ class SearchEngineCompleter        autoSelect: true        highlightTerms: false        isSearchSuggestion: true +      isPrimarySuggestion: true      return onComplete [ primarySuggestion ], { filter } if queryTerms.length == 0 | 
