diff options
| author | Stephen Blott | 2015-05-17 09:03:05 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-17 09:03:08 +0100 |
| commit | 832be3c2059870e0930ece3ea88377034e237119 (patch) | |
| tree | d329881685c5162c1a9dd5ce3c43fed681337efb /pages/vomnibar.coffee | |
| parent | 9ae3ef93a4c4e00081bae65bc3c23cf08b9cff9a (diff) | |
| download | vimium-832be3c2059870e0930ece3ea88377034e237119.tar.bz2 | |
TabToOpen: reactivate previous custom search engine.
Note: There's still an unpleasant flicker when this happens.
TBD: Fix this.
Diffstat (limited to 'pages/vomnibar.coffee')
| -rw-r--r-- | pages/vomnibar.coffee | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 18ad5945..2caec140 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -195,11 +195,15 @@ class VomnibarUI updateOnInput: => @completer.cancel() + updateSynchronously = false + if 0 < @selection and @completions[@selection].insertPrefixOnInput + @input.value = @completions[@selection].insertPrefixOnInput + @input.value + updateSynchronously = true # If the user types, then don't reset any previous text, and reset the selection. if @previousInputValue? @previousInputValue = null @selection = -1 - @update false + @update updateSynchronously clearUpdateTimer: -> if @updateTimer? |
