We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35cfa2a commit 2a127c3Copy full SHA for 2a127c3
src/utils.rs
@@ -57,7 +57,8 @@ fn rem_first_and_last(value: &str) -> &str {
57
}
58
59
fn fmt_command(command: &Command) -> String {
60
- let cmd_str_raw = format!("{:?}", command)
+ rem_first_and_last(&format!("{:?}", command))
61
+ .to_string()
62
.split("\" \"")
63
.map(|s| {
64
if s.contains('?') || s.contains('!') {
@@ -66,8 +67,7 @@ fn fmt_command(command: &Command) -> String {
66
67
s.to_string()
68
69
})
- .join(" ");
70
- rem_first_and_last(&cmd_str_raw).to_string()
+ .join(" ")
71
72
73
fn print_command(command: &Command) {
0 commit comments