From 0faa06a96e08b0d9ffc025047eb0100c8c406d9a Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 9 Mar 2026 22:17:58 +0100 Subject: [PATCH] fix(prompt): prompt preview padding --- src/prompts/prompter.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/prompts/prompter.rs b/src/prompts/prompter.rs index 68c5113..60e0e66 100644 --- a/src/prompts/prompter.rs +++ b/src/prompts/prompter.rs @@ -143,18 +143,11 @@ impl Prompter for RealPrompts { // Show preview println!(); println!("📝 Commit Message Preview:"); - println!( - "┌─────────────────────────────────────────────────────────────────────────────────────────────────┐" - ); - println!("│ {}│", message); + println!("┌─────────────────────────────────────────────────────────────────────────┐"); // Pad with spaces to fill the box let padding = 72_usize.saturating_sub(message.chars().count()); - if padding > 0 { - println!("│{:padding$}│", ""); - } - println!( - "└─────────────────────────────────────────────────────────────────────────────────────────────────┘" - ); + println!("│ {message}{:padding$}│", ""); + println!("└─────────────────────────────────────────────────────────────────────────┘"); println!(); // Get confirmation