diff options
| author | Stephen Blott | 2015-05-05 06:07:59 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-05 06:07:59 +0100 |
| commit | 04398df01e57923a4b19319b2b77f487c703ab30 (patch) | |
| tree | 299da08dfdef477227b312ef6b36a151bf4b0e0b | |
| parent | 93b3938e8c8b04c4cd15ad7bff83f8d34c9a604b (diff) | |
| download | vimium-04398df01e57923a4b19319b2b77f487c703ab30.tar.bz2 | |
Search completion; fix autoselect on empty vomnibar.
| -rw-r--r-- | pages/vomnibar.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index c27d689a..9566d9d9 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -91,6 +91,8 @@ class VomnibarUI @selection = 0 if @completions[0].autoSelect and not @previousAutoSelect @selection = -1 if @previousAutoSelect and not @completions[0].autoSelect @previousAutoSelect = @completions[0].autoSelect + else + @previousAutoSelect = null # For suggestions from search-engine completion, we copy the suggested text into the input when selected, # and revert when not. This allows the user to select a suggestion and then continue typing. |
