diff --git a/src/main.rs b/src/main.rs index a1c78f8..6b269fe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,8 +18,8 @@ fn main() { if let Some(corrected_command) = corrected_command { let command_difference = highlight_difference(&shell, &corrected_command, &last_command); - if let Some(command) = command_difference { - suggestions::confirm_suggestion(&shell, &command); + if let Some(highlighted_command) = command_difference { + suggestions::confirm_suggestion(&shell, &corrected_command, &highlighted_command); return; } } diff --git a/src/style.rs b/src/style.rs index 9e16e55..bdf7025 100644 --- a/src/style.rs +++ b/src/style.rs @@ -7,8 +7,6 @@ use colored::*; pub fn highlight_difference(shell: &str, suggested_command: &str, last_command: &str) -> Option { let mut split_suggested_command = split_command(suggested_command); let split_last_command = split_command(last_command); - println!("split_suggested_command: {:?}", split_suggested_command); - println!("split_last_command: {:?}", split_last_command); if split_suggested_command == split_last_command { return None;