From bee17c262a3dd63ecb74952dabf82658c93e78d6 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Fri, 1 Nov 2019 21:35:57 +0100 Subject: [PATCH] Fix #109 --- src/matcher/scrolling.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/matcher/scrolling.rs b/src/matcher/scrolling.rs index 330a01a..83db187 100644 --- a/src/matcher/scrolling.rs +++ b/src/matcher/scrolling.rs @@ -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);