fix wrong range used

This commit is contained in:
IGI-111 2016-07-16 19:21:51 +02:00
parent 5eae7cf732
commit 4402ebd8b3
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ impl<I: Iterator<Item = Result<char, io::CharsError>>> Iterator for Keys<I> {
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,