From 1f86403eb8b04cebbd56a3055f8aff4c6f48ba3f Mon Sep 17 00:00:00 2001 From: iff Date: Tue, 31 Dec 2024 15:17:30 +0100 Subject: [PATCH] chore: fmt --- core/src/style.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();