From e7f503c36e9a67d28c6eaa46812a59310fe285fe Mon Sep 17 00:00:00 2001 From: Andrej Benz Date: Wed, 5 Apr 2023 20:24:50 +0200 Subject: [PATCH] remove forced space character from prefix --- plugins/shell/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/shell/src/lib.rs b/plugins/shell/src/lib.rs index 015b1a1..4f95264 100644 --- a/plugins/shell/src/lib.rs +++ b/plugins/shell/src/lib.rs @@ -34,7 +34,7 @@ fn info() -> PluginInfo { } fn get_matches(input: RString, config: &mut Config) -> RVec { - let prefix_with_delim = format!("{} ", config.prefix); + let prefix_with_delim = format!("{}", config.prefix); if input.starts_with(&prefix_with_delim) { let (_, command) = input.split_once(&prefix_with_delim).unwrap(); if !command.is_empty() {