Fix incorrect stringification of suffix with leading colon
This commit is contained in:
parent
b64a71e2fa
commit
1e6824a1a5
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ fn stringify(cmd: &str, args: &[&str]) -> String {
|
|||
Some((suffix, args)) => {
|
||||
let args = args.join(" ");
|
||||
let sp = if args.is_empty() { "" } else { " " };
|
||||
let co = if suffix.is_empty() || suffix.contains(' ') {
|
||||
let co = if suffix.is_empty() || suffix.contains(' ') || suffix.starts_with(':') {
|
||||
":"
|
||||
} else {
|
||||
""
|
||||
|
|
Loading…
Reference in a new issue