diff options
author | Canop <cano.petrole@gmail.com> | 2020-09-30 17:22:52 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-09-30 17:22:52 +0200 |
commit | 6e156533cd3663d83cd9ccd511e5301ed731c39a (patch) | |
tree | d48f640f94171fe109a2dc90b84a70101880ae58 /src/app/app.rs | |
parent | 7de5b8d565b6d638e43558df5832c6a8b5290e63 (diff) |
remove useless displays from sequence execution
Diffstat (limited to 'src/app/app.rs')
-rw-r--r-- | src/app/app.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/app/app.rs b/src/app/app.rs index c6784c4..1c9cb43 100644 --- a/src/app/app.rs +++ b/src/app/app.rs @@ -543,14 +543,16 @@ impl App { for (input, arg_cmd) in raw_sequence.parse(con)? { self.mut_panel().set_input_content(&input); self.apply_command(w, arg_cmd, &skin.focused, con)?; - self.display_panels(w, &skin, con)?; - w.flush()?; - self.do_pending_tasks(con, &mut dam)?; - self.display_panels(w, &skin, con)?; - w.flush()?; if self.quitting { // is that a 100% safe way of quitting ? return Ok(self.launch_at_end.take()); + } else { + self.display_panels(w, &skin, con)?; + w.flush()?; + if self.do_pending_tasks(con, &mut dam)? { + self.display_panels(w, &skin, con)?; + w.flush()?; + } } } } |