Merge pull request #5 from abenz1267/master

remove forced space character from prefix
This commit is contained in:
Kirottu
2023-04-05 21:53:01 +03:00
committed by GitHub

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() {