diff options
| author | Stephen Blott | 2015-05-04 11:55:37 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-04 11:55:37 +0100 |
| commit | f9d35083ad511080ee5c01c5c97ef29503f3c0ba (patch) | |
| tree | 76689f25b10f8512f3ac26e3b11057e596ae09c1 /pages | |
| parent | 4e86053f9464c04b9e422625478f8e827f37e533 (diff) | |
| download | vimium-f9d35083ad511080ee5c01c5c97ef29503f3c0ba.tar.bz2 | |
Search completion; simplify/document suggestion options.
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/vomnibar.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 3fb63177..8a262e76 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -96,10 +96,10 @@ class VomnibarUI # 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. - if 0 <= @selection and @completions[@selection].insertText + if 0 <= @selection and @completions[@selection].insertText? @previousText ?= @input.value suggestion = @completions[@selection] - @input.value = (suggestion.reinsertPrefix ? "") + suggestion.title + " " + @input.value = @completions[@selection].insertText else if @previousText? @input.value = @previousText @previousText = null |
