use correct _extend methods, also remove unnecessary casts

pull/95/head
Antoni Stevent 4 years ago committed by Blaž Hrastnik
parent f0fe558f38
commit 27aee705e0

@ -131,7 +131,7 @@ pub fn default() -> Keymaps {
KeyEvent { KeyEvent {
code: KeyCode::Left, code: KeyCode::Left,
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
} => commands::move_char_left as Command, } => commands::move_char_left,
KeyEvent { KeyEvent {
code: KeyCode::Down, code: KeyCode::Down,
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
@ -145,7 +145,6 @@ pub fn default() -> Keymaps {
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
} => commands::move_char_right, } => commands::move_char_right,
key!('t') => commands::find_till_char, key!('t') => commands::find_till_char,
key!('f') => commands::find_next_char, key!('f') => commands::find_next_char,
key!('T') => commands::till_prev_char, key!('T') => commands::till_prev_char,
@ -290,19 +289,19 @@ pub fn default() -> Keymaps {
KeyEvent { KeyEvent {
code: KeyCode::Left, code: KeyCode::Left,
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
} => commands::move_char_left as Command, } => commands::extend_char_left,
KeyEvent { KeyEvent {
code: KeyCode::Down, code: KeyCode::Down,
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
} => commands::move_line_down, } => commands::extend_line_down,
KeyEvent { KeyEvent {
code: KeyCode::Up, code: KeyCode::Up,
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
} => commands::move_line_up, } => commands::extend_line_up,
KeyEvent { KeyEvent {
code: KeyCode::Right, code: KeyCode::Right,
modifiers: KeyModifiers::NONE modifiers: KeyModifiers::NONE
} => commands::move_char_right, } => commands::extend_char_right,
key!('w') => commands::extend_next_word_start, key!('w') => commands::extend_next_word_start,
key!('b') => commands::extend_prev_word_start, key!('b') => commands::extend_prev_word_start,

Loading…
Cancel
Save