diff options
| author | mo8it <mo8it@proton.me> | 2024-08-08 00:35:29 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-08 00:41:12 +0200 |
| commit | 11fc3f1e56b1b248465039db4c736bb7186e4f47 (patch) | |
| tree | e5ac47a4dd42e7b76dd5559f2419b764cf91cd51 /src/main.rs | |
| parent | 693bb708b2af786b942e172d3aed104c0abd252e (diff) | |
Fix errors not being shown after the welcome message
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 2d1d545..12786d0 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 => (), } |
