-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up some file structure, process code, and terminal cl…
…eanup (#1676) * move widgets * reduce allocations needed * ah * more possible optimizations around reducing allocs * some fixes * I forgot to clear the buffer oops * missing * only run terminal cleanup after certain point
- Loading branch information
1 parent
2b5441c
commit d63ca07
Showing
13 changed files
with
207 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
use bottom::{reset_stdout, start_bottom}; | ||
|
||
fn main() -> anyhow::Result<()> { | ||
start_bottom().inspect_err(|_| { | ||
reset_stdout(); | ||
let mut run_error_hook = false; | ||
|
||
start_bottom(&mut run_error_hook).inspect_err(|_| { | ||
if run_error_hook { | ||
reset_stdout(); | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.