Skip to content

Commit

Permalink
fix: draw initial state before any event is received
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Dec 4, 2023
1 parent 6314d35 commit 71f846b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/debugger/src/tui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ impl Debugger {
.spawn(move || Self::event_listener(tx))
.expect("failed to spawn thread");

// Draw the initial state.
cx.draw(terminal)?;

// Start the event loop.
loop {
match cx.handle_event(rx.recv()?) {
ControlFlow::Continue(()) => {}
Expand Down

0 comments on commit 71f846b

Please sign in to comment.