aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2014-12-31 15:01:56 +0000
committerStephen Blott2014-12-31 15:01:56 +0000
commit4a00f76f2ad3d0ec8cdb70c7e45f561d5a73ff27 (patch)
tree5bb666a1ad9035b9fb196c2f4335dc3f81cb7226
parent4ce1528601e70d4de0b505ebef5db8f7d3b71277 (diff)
downloadvimium-4a00f76f2ad3d0ec8cdb70c7e45f561d5a73ff27.tar.bz2
Fix vomnibar flicker after tabs mode.
In tabs mode, the vomnibar is pre-populated when the query is empty. If, as part of hiding the vomnibar, we reset it, it becomes populated again, so the display style is reset from "none" to "block". Therefore, the completion list is briefly visible when the vomnibar is later reactivated. Solution: - Do not run `@update()` from `@reset()`.
-rw-r--r--pages/vomnibar.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee
index 78c954cd..0ade7f0e 100644
--- a/pages/vomnibar.coffee
+++ b/pages/vomnibar.coffee
@@ -51,6 +51,7 @@ class VomnibarUI
setCompleter: (completer) ->
@completer = completer
@reset()
+ @update(true)
setRefreshInterval: (refreshInterval) -> @refreshInterval = refreshInterval
@@ -66,7 +67,6 @@ class VomnibarUI
@updateTimer = null
@completions = []
@selection = @initialSelectionValue
- @update(true)
updateSelection: ->
# We have taken the option to add some global state here (previousCompletionType) to tell if a search