remove forced space character from prefix

This commit is contained in:
Andrej Benz
2023-04-05 20:24:50 +02:00
parent b6f8bc631d
commit e7f503c36e

View File

@@ -34,7 +34,7 @@ fn info() -> PluginInfo {
}
fn get_matches(input: RString, config: &mut Config) -> RVec<Match> {
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() {