diff options
| author | Phil Crosby | 2012-06-10 00:54:32 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-06-10 01:41:45 -0700 |
| commit | 17441ec22e3ee1a607674b4b6b57b0bca433a841 (patch) | |
| tree | 30a17e9c5df2192db94c462d812042d58d3a21dc | |
| parent | f761ecf620a103268cb11d49f64768afb4bab08b (diff) | |
| download | vimium-17441ec22e3ee1a607674b4b6b57b0bca433a841.tar.bz2 | |
Show results immediately when you hit Shift+O (vomnibar with current URL).
| -rw-r--r-- | content_scripts/vomnibar.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/content_scripts/vomnibar.js b/content_scripts/vomnibar.js index 93fd79da..f0460ffa 100644 --- a/content_scripts/vomnibar.js +++ b/content_scripts/vomnibar.js @@ -18,10 +18,11 @@ var vomnibar = (function() { completer.refresh(); vomnibarUI.setCompleter(completer); vomnibarUI.setRefreshInterval(refreshInterval); - if (initialQueryValue) - vomnibarUI.setQuery(initialQueryValue); vomnibarUI.show(); - return vomnibarUI; + if (initialQueryValue) { + vomnibarUI.setQuery(initialQueryValue); + vomnibarUI.update(); + } } /** User interface for fuzzy completion */ @@ -196,7 +197,7 @@ var vomnibar = (function() { if (msg.id != id) return; // The result objects coming from the background page will be of the form: // { html: "", type: "", url: "" } - // type will be one of [tab, bookmark, history]. + // type will be one of [tab, bookmark, history, domain]. var results = msg.results.map(function(result) { var functionToCall; if (result.type == "tab") |
