diff --git a/src/prompts/prompter.rs b/src/prompts/prompter.rs index 68c5113..415725d 100644 --- a/src/prompts/prompter.rs +++ b/src/prompts/prompter.rs @@ -144,16 +144,13 @@ impl Prompter for RealPrompts { println!(); println!("📝 Commit Message Preview:"); println!( - "┌─────────────────────────────────────────────────────────────────────────────────────────────────┐" + "┌─────────────────────────────────────────────────────────────────────────┐" ); - println!("│ {}│", message); // Pad with spaces to fill the box let padding = 72_usize.saturating_sub(message.chars().count()); - if padding > 0 { - println!("│{:padding$}│", ""); - } + println!("│ {message}{:padding$}│", ""); println!( - "└─────────────────────────────────────────────────────────────────────────────────────────────────┘" + "└─────────────────────────────────────────────────────────────────────────┘" ); println!();