diff options
| author | Stephen Blott | 2016-04-29 13:33:37 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-04-29 13:33:41 +0100 | 
| commit | 1597664119a4b3660886f83f81e6ad91a0d7062c (patch) | |
| tree | 40ed404d8a8ba7ee40f8998922515204cf804a65 | |
| parent | fc8519e4e3a770253a35f1af7546d432f64392ea (diff) | |
| download | vimium-1597664119a4b3660886f83f81e6ad91a0d7062c.tar.bz2 | |
Vomnibar, on tab: require there to be completions.
Do the following:
- `b`, `Tab`
The Vomnibar crashes.  The problem is that we're advancing the selection
even though there are no suggestions available.
Here, we require there to be a suggestion or suggestions before
advancing the selection.
| -rw-r--r-- | pages/vomnibar.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 449c0bac..95ef8151 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -136,7 +136,7 @@ class VomnibarUI          @input.value.trim().length == 0            @seenTabToOpenCompletionList = true            @update true -      else +      else if 0 < @completions.length          @selection += 1          @selection = @initialSelectionValue if @selection == @completions.length          @updateSelection() | 
