From 761695fe9bf351216f3ce733ce9c23d6abda53be Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 24 Nov 2020 09:16:50 +0100 Subject: [PATCH] hotfix(controls): clear buffer in normal mode --- src/input.rs | 1 + 1 file changed, 1 insertion(+) 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");