Formatting fix
This commit is contained in:
parent
f79ff6ae02
commit
3c9b18fcb4
@ -55,7 +55,14 @@ impl Editor {
|
|||||||
let pressed_key = Terminal::read_key()?;
|
let pressed_key = Terminal::read_key()?;
|
||||||
match pressed_key {
|
match pressed_key {
|
||||||
Key::Ctrl('q') => self.should_quit = true,
|
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(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user