hotfix(controls): clear buffer in normal mode
This commit is contained in:
parent
ed590bceda
commit
761695fe9b
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue