From 5712c7fd612b6bc4fe5438638695ba69a843a179 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 8 Mar 2020 20:33:44 +0100 Subject: [PATCH] Add change to consider modifiers as word separators, which improves word match reliability --- src/matcher/scrolling.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matcher/scrolling.rs b/src/matcher/scrolling.rs index 17b3da1..98df210 100644 --- a/src/matcher/scrolling.rs +++ b/src/matcher/scrolling.rs @@ -235,6 +235,10 @@ impl <'a, R: MatchReceiver, M: ConfigManager<'a>> super::Matcher for ScrollingMa let mut current_set_queue = self.current_set_queue.borrow_mut(); current_set_queue.pop_back(); } + + // Consider modifiers as separators to improve word matches reliability + let mut was_previous_char_word_separator = self.was_previous_char_word_separator.borrow_mut(); + *was_previous_char_word_separator = true; } fn handle_other(&self) {