aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-05-05 06:07:59 +0100
committerStephen Blott2015-05-05 06:07:59 +0100
commit04398df01e57923a4b19319b2b77f487c703ab30 (patch)
tree299da08dfdef477227b312ef6b36a151bf4b0e0b
parent93b3938e8c8b04c4cd15ad7bff83f8d34c9a604b (diff)
downloadvimium-04398df01e57923a4b19319b2b77f487c703ab30.tar.bz2
Search completion; fix autoselect on empty vomnibar.
-rw-r--r--pages/vomnibar.coffee2
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.