fix wrong range used
This commit is contained in:
parent
5eae7cf732
commit
4402ebd8b3
|
@ -77,7 +77,7 @@ impl<I: Iterator<Item = Result<char, io::CharsError>>> Iterator for Keys<I> {
|
||||||
Some(Ok('B')) => Key::Down,
|
Some(Ok('B')) => Key::Down,
|
||||||
Some(Ok('H')) => Key::Home,
|
Some(Ok('H')) => Key::Home,
|
||||||
Some(Ok('F')) => Key::End,
|
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 {
|
Some(Ok('~')) => match c {
|
||||||
'1' | '7' => Key::Home,
|
'1' | '7' => Key::Home,
|
||||||
'2' | '8' => Key::Insert,
|
'2' | '8' => Key::Insert,
|
||||||
|
|
Loading…
Reference in New Issue