summaryrefslogtreecommitdiffstats
path: root/src/widget.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget.rs')
-rw-r--r--src/widget.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.rs b/src/widget.rs
index 3ef7f76..1a91994 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -554,10 +554,10 @@ fn event_thread(rx_global: Receiver<Events>,
fn input_thread(tx: Sender<Events>, rx_input_request: Receiver<()>) {
std::thread::spawn(move || {
for input in stdin().events() {
- term::flush_stdin();
input.map(|input| {
tx.send(Events::InputEvent(input)).unwrap();
rx_input_request.recv().unwrap();
+ term::flush_stdin();
}).map_err(|e| HError::from(e)).log();
}
});