From 4402ebd8b38baed0fc3e4f0e8eda8f6c800b40ed Mon Sep 17 00:00:00 2001 From: IGI-111 Date: Sat, 16 Jul 2016 19:21:51 +0200 Subject: [PATCH] fix wrong range used --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.rs b/src/input.rs index 21a80dd..fdb8da2 100644 --- a/src/input.rs +++ b/src/input.rs @@ -77,7 +77,7 @@ impl>> Iterator for Keys { Some(Ok('B')) => Key::Down, Some(Ok('H')) => Key::Home, Some(Ok('F')) => Key::End, - Some(Ok(c @ '1' ... '6')) => match self.chars.next() { + Some(Ok(c @ '1' ... '8')) => match self.chars.next() { Some(Ok('~')) => match c { '1' | '7' => Key::Home, '2' | '8' => Key::Insert,