From 38c48646984127fec382faf7a5b64005b69b5666 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Wed, 14 Sep 2016 18:43:09 +0200 Subject: [PATCH] Fix deleting hint char after filtering by text 1. Press `f`. 2. Filter hint markers by one element text char. 3. Press a hint char for a more-than-one-char hint. 4. Press ``. Result: The original hints are show, instead of only the ones show after step 2. This commit fixes that. --- extension/lib/marker-container.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/lib/marker-container.coffee b/extension/lib/marker-container.coffee index 71fa2fb..cf8ba5d 100644 --- a/extension/lib/marker-container.coffee +++ b/extension/lib/marker-container.coffee @@ -362,9 +362,10 @@ class MarkerContainer matchingMarkers = [] @resetHighlightedMarkers() + splitEnteredText = @splitEnteredText() for marker in @markers when marker.isComplementary == @isComplementary marker.markMatchedPart(hint) - if marker.matchHint(hint) + if marker.matchHint(hint) and marker.matchText(splitEnteredText) marker.show() matchingMarkers.push(marker) @updateHighlightedMarkers(marker) -- 2.39.3