Skip to content
Snippets Groups Projects
Commit 4402ebd8 authored by IGI-111's avatar IGI-111
Browse files

fix wrong range used

parent 5eae7cf7
No related branches found
No related tags found
1 merge request!28added more special keys
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment