aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-11-24 09:16:50 +0100
committerAram Drevekenin <aram@poor.dev>2020-11-24 09:16:50 +0100
commit761695fe9bf351216f3ce733ce9c23d6abda53be (patch)
treec8211373a9fa98e27ef7942b8562e9b3d41abb13 /src
parentfix(atomicity): allow async vte events sending to fail (#67) (diff)
downloadsl0ppij-761695fe9bf351216f3ce733ce9c23d6abda53be.tar.gz
sl0ppij-761695fe9bf351216f3ce733ce9c23d6abda53be.tar.xz
sl0ppij-761695fe9bf351216f3ce733ce9c23d6abda53be.zip
hotfix(controls): clear buffer in normal mode
Diffstat (limited to 'src')
-rw-r--r--src/input.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 8ae604c2..91b0ec98 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -58,6 +58,7 @@ impl InputHandler {
assert_eq!(self.mode, InputMode::Normal);
loop {
+ self.buffer = [0; 10];
self.stdin
.read(&mut self.buffer)
.expect("failed to read stdin");