Trim shell command

This commit is contained in:
Kirottu
2023-05-02 08:37:17 +03:00
parent 0e5fd5d1bf
commit 8a4c0ae397

View File

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