Trim shell command
This commit is contained in:
@@ -41,7 +41,7 @@ fn get_matches(input: RString, config: &Config) -> RVec<Match> {
|
|||||||
let (_, command) = input.split_once(&config.prefix).unwrap();
|
let (_, command) = input.split_once(&config.prefix).unwrap();
|
||||||
if !command.is_empty() {
|
if !command.is_empty() {
|
||||||
vec![Match {
|
vec![Match {
|
||||||
title: command.into(),
|
title: command.trim().into(),
|
||||||
description: ROption::RSome(
|
description: ROption::RSome(
|
||||||
config
|
config
|
||||||
.shell
|
.shell
|
||||||
|
Reference in New Issue
Block a user