fix: missing color in display

This commit is contained in:
iff 2023-08-01 20:40:19 +02:00
parent 9a56ff41ab
commit 9978c3bcab
3 changed files with 4 additions and 4 deletions

View file

View file

@ -21,9 +21,9 @@ pub fn highlight_difference(suggested_command: &str, last_command: &str) -> Stri
let mut highlighted = suggested_command.to_string();
for entry in &split_suggested_command {
if old_entries.contains(entry) {
highlighted = highlighted.replace(entry, &entry.cyan());
highlighted = highlighted.replace(entry, &entry.cyan().to_string());
} else {
highlighted = highlighted.replace(entry, &entry.red().bold());
highlighted = highlighted.replace(entry, &entry.red().bold().to_string());
}
}