hotfix(controls): clear buffer in normal mode

This commit is contained in:
Aram Drevekenin 2020-11-24 09:16:50 +01:00
parent ed590bceda
commit 761695fe9b

View file

@ -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");