From be2d34760d3e57153ed5e8e71f395f9c5232d130 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 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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!();