use correct _extend methods, also remove unnecessary casts
This commit is contained in:
parent
f0fe558f38
commit
27aee705e0
1 changed files with 5 additions and 6 deletions
|
@ -131,7 +131,7 @@ pub fn default() -> Keymaps {
|
|||
KeyEvent {
|
||||
code: KeyCode::Left,
|
||||
modifiers: KeyModifiers::NONE
|
||||
} => commands::move_char_left as Command,
|
||||
} => commands::move_char_left,
|
||||
KeyEvent {
|
||||
code: KeyCode::Down,
|
||||
modifiers: KeyModifiers::NONE
|
||||
|
@ -145,7 +145,6 @@ pub fn default() -> Keymaps {
|
|||
modifiers: KeyModifiers::NONE
|
||||
} => commands::move_char_right,
|
||||
|
||||
|
||||
key!('t') => commands::find_till_char,
|
||||
key!('f') => commands::find_next_char,
|
||||
key!('T') => commands::till_prev_char,
|
||||
|
@ -290,19 +289,19 @@ pub fn default() -> Keymaps {
|
|||
KeyEvent {
|
||||
code: KeyCode::Left,
|
||||
modifiers: KeyModifiers::NONE
|
||||
} => commands::move_char_left as Command,
|
||||
} => commands::extend_char_left,
|
||||
KeyEvent {
|
||||
code: KeyCode::Down,
|
||||
modifiers: KeyModifiers::NONE
|
||||
} => commands::move_line_down,
|
||||
} => commands::extend_line_down,
|
||||
KeyEvent {
|
||||
code: KeyCode::Up,
|
||||
modifiers: KeyModifiers::NONE
|
||||
} => commands::move_line_up,
|
||||
} => commands::extend_line_up,
|
||||
KeyEvent {
|
||||
code: KeyCode::Right,
|
||||
modifiers: KeyModifiers::NONE
|
||||
} => commands::move_char_right,
|
||||
} => commands::extend_char_right,
|
||||
|
||||
key!('w') => commands::extend_next_word_start,
|
||||
key!('b') => commands::extend_prev_word_start,
|
||||
|
|
Loading…
Add table
Reference in a new issue