From a75894b02534bdd3882f3e911ca75a64f3828348 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 27 Aug 2016 23:26:06 +0200 Subject: [PATCH] Fix initial visibility of second-pass hint markers 1. Go to a site where there is a noticeable delay between the two passes for the `f` command, such as on reddit.com. 2. Press a prefix hint char there before the second pass has completed. When the second pass completes, the hint markers for that pass will be shown, even though they cannot start with the prefix hint char you pressed. This commit makes sure that the hint markers for the second pass start out hidden if needed. --- extension/lib/marker-container.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension/lib/marker-container.coffee b/extension/lib/marker-container.coffee index f3b297d..eed284e 100644 --- a/extension/lib/marker-container.coffee +++ b/extension/lib/marker-container.coffee @@ -89,6 +89,8 @@ class MarkerContainer else markers.push(marker) markerMap[wrapper.elementIndex] = marker + if marker.isComplementary == @isComplementary and @numEnteredChars > 0 + marker.hide() # Both the `z-index` assignment and the Huffman algorithm below require the # markers to be sorted. -- 2.39.3