Formatting fix

This commit is contained in:
Timothy Warren 2021-03-08 09:51:20 -05:00
parent f79ff6ae02
commit 3c9b18fcb4
1 changed files with 8 additions and 1 deletions

View File

@ -55,7 +55,14 @@ impl Editor {
let pressed_key = Terminal::read_key()?;
match pressed_key {
Key::Ctrl('q') => self.should_quit = true,
Key::Up | Key::Down | Key::Left | Key::Right | Key::PageUp | Key::PageDown | Key::End | Key::Home => self.move_cursor(pressed_key),
Key::Up
| Key::Down
| Key::Left
| Key::Right
| Key::PageUp
| Key::PageDown
| Key::End
| Key::Home => self.move_cursor(pressed_key),
_ => (),
}
Ok(())