diff --git a/core/src/style.rs b/core/src/style.rs index d5da808..6186d41 100644 --- a/core/src/style.rs +++ b/core/src/style.rs @@ -63,9 +63,10 @@ pub fn highlight_difference(data: &Data, suggested_command: &str) -> Option') { - split_suggested_command[0] = format!("{} -c \"", shell).blue().to_string() - + &split_suggested_command[0]; + || suggested_command.contains('>') + { + split_suggested_command[0] = + format!("{} -c \"", shell).blue().to_string() + &split_suggested_command[0]; let len = split_suggested_command.len() - 1; split_suggested_command[len] = split_suggested_command[len].clone() + "\"".blue().to_string().as_str();