Skip to content

Commit

Permalink
fix initial state not being displayed
Browse files Browse the repository at this point in the history
My tests are lacking...
  • Loading branch information
Canop committed Jan 21, 2019
1 parent 3e5faa6 commit 8b70a71
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ impl App {
screen.write_status_text("Hit <esc> to quit, '?' for help, or type some letters to search")?;
self.state().write_flags(&mut screen, con)?;
loop {
if !self.quitting {
self.do_pending_tasks(
&cmd,
&mut screen,
con,
TaskLifetime::new(&cmd_count),
)?;
}
let c = match rx_keys.recv() {
Ok(c) => c,
Err(_) => {
Expand All @@ -223,14 +231,6 @@ impl App {
cmd.add_key(c?);
cmd = self.apply_command(cmd, &mut screen, con)?;
tx_quit.send(self.quitting).unwrap();
if !self.quitting {
self.do_pending_tasks(
&cmd,
&mut screen,
con,
TaskLifetime::new(&cmd_count),
)?;
}
}
Ok(self.launch_at_end)
}
Expand Down

0 comments on commit 8b70a71

Please sign in to comment.