feat: auto-retry if suggestion failed

This commit is contained in:
iff 2023-08-07 19:58:19 +02:00
parent b6c298d8f7
commit 1444eeab84
3 changed files with 35 additions and 13 deletions

View file

@ -35,7 +35,7 @@ pub fn highlight_difference(shell: &str, suggested_command: &str, last_command:
}
for old in &old_entries {
if old == entry {
*entry = entry.cyan().to_string();
*entry = entry.blue().to_string();
continue 'next;
}
}