From 8a4c0ae397fceb0da87c553b3a4d8e6d844139ad Mon Sep 17 00:00:00 2001 From: Kirottu Date: Tue, 2 May 2023 08:37:17 +0300 Subject: [PATCH] Trim shell command --- 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 35abf0f..1d2f473 100644 --- a/plugins/shell/src/lib.rs +++ b/plugins/shell/src/lib.rs @@ -41,7 +41,7 @@ fn get_matches(input: RString, config: &Config) -> RVec { let (_, command) = input.split_once(&config.prefix).unwrap(); if !command.is_empty() { vec![Match { - title: command.into(), + title: command.trim().into(), description: ROption::RSome( config .shell