From 11fc3f1e56b1b248465039db4c736bb7186e4f47 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 8 Aug 2024 00:35:29 +0200 Subject: [PATCH] Fix errors not being shown after the welcome message --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2d1d5455..12786d01 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,6 +121,8 @@ fn main() -> Result<()> { stdout.flush()?; press_enter_prompt()?; clear_terminal(&mut stdout)?; + // Flush to be able to show errors occuring before printing a newline to stdout. + stdout.flush()?; } StateFileStatus::Read => (), }