This commit is contained in:
Federico Terzi 2019-11-01 21:35:57 +01:00
parent 0237c9e061
commit bee17c262a

View File

@ -168,7 +168,10 @@ impl <'a, R: MatchReceiver, M: ConfigManager<'a>> super::Matcher for ScrollingMa
last.clear();
}
let trailing_separator = if !is_current_word_separator {
let trailing_separator = if !mtc.word {
// If it's not a word match, it cannot have a trailing separator
None
} else if !is_current_word_separator {
None
}else{
let as_char = c.chars().nth(0);