summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-14 18:22:18 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-14 18:23:14 -0400
commitd5466b503e0ba0f88682654dc7ce28cf2f4393c8 (patch)
tree9ce09bb4100b3f12480f6db2eb951ec48e9795b4 /src/run.rs
parent032258fcd42761719561a43e52c1a264b92cf067 (diff)
rework input event thread handling
- this fixes issues where joshuto steals the inputs of terminal applications after file operations have been done
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index b6b03c8..0291a34 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -98,6 +98,7 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io:
}
}
}
+ context.events.flush();
}
}
let mut view = TuiView::new(&context);
@@ -109,6 +110,5 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io:
}
}
}
- eprintln!("{:#?}", context.message_queue);
Ok(())
}