aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-12 12:24:09 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-12 12:24:17 -0500
commit15d0610c58e7ee871f8f356a90c99999e0f8a924 (patch)
tree4dca9dd9542477203f188878ffbd24b341e7597a
parent7c06da9c0f3402efbc3954e9f14b1d039fd38929 (diff)
downloadtextmode-15d0610c58e7ee871f8f356a90c99999e0f8a924.tar.gz
textmode-15d0610c58e7ee871f8f356a90c99999e0f8a924.zip
make the order of operations a bit more natural here
-rw-r--r--examples/tmux.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/tmux.rs b/examples/tmux.rs
index 62e52c2..c3e16b4 100644
--- a/examples/tmux.rs
+++ b/examples/tmux.rs
@@ -312,10 +312,11 @@ impl Tmux {
mut state,
} = self;
- state.new_window(ex, state.wevents.clone());
state.spawn_input_task(ex, input);
ex.run(async {
+ state.new_window(ex, state.wevents.clone());
+
loop {
match state.revents.recv().await {
Ok(Event::Output) => {