From 1e2fb49dac01832cbce16dc0903456fc1cd89e01 Mon Sep 17 00:00:00 2001 From: Lux Aliaga Date: Wed, 16 Aug 2023 09:12:46 -0400 Subject: [PATCH] inv: Remove whitespace between emoji and message This happened to be an issue with the terminal I was using to test out Vento. It would not space emojis correctly, causing them to require an additional whitespace to be displayed correctly. Now that I've switched terminals, it's now displayed as it really is: two whitespaces. Remove the additional whitespaces I've accidentally added. --- src/inv.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inv.rs b/src/inv.rs index bc46e7b..1af0ff2 100644 --- a/src/inv.rs +++ b/src/inv.rs @@ -35,7 +35,7 @@ pub fn init() -> Result<()> { if ventodir.is_dir() { // Checks if Vento has already been initialized and prompts the user if they want to initialize it again let mut answer = String::new(); - print!("⚠️ {} Vento has already been initialized. Reinitializing will delete all files on the directory for Vento. Do you wish to proceed? (y/N) ", "WARNING:".bold().red()); + print!("⚠️ {} Vento has already been initialized. Reinitializing will delete all files on the directory for Vento. Do you wish to proceed? (y/N) ", "WARNING:".bold().red()); let _ = io::stdout().flush(); io::stdin().read_line(&mut answer)?; match answer.as_str().trim() { @@ -89,7 +89,7 @@ pub fn list(slot: &str, dir: &str) -> Result<()> { if fs::read_dir(&slotdir).unwrap().count() == 0 { // Detects if the slot or directory has any contents println!( - "🗃️ {}", + "🗃️ {}", format!( "No files in {}{}", match slot { @@ -110,7 +110,7 @@ pub fn list(slot: &str, dir: &str) -> Result<()> { ); } else { println!( - "🗃️ {}", + "🗃️ {}", format!( "Files in {}{} ({}):", match slot {