Add change to consider modifiers as word separators, which improves word match reliability

This commit is contained in:
Federico Terzi 2020-03-08 20:33:44 +01:00
parent 69001c6546
commit 5712c7fd61

View File

@ -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(); let mut current_set_queue = self.current_set_queue.borrow_mut();
current_set_queue.pop_back(); 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) { fn handle_other(&self) {