on master help sign in
use correct _extend methods, also remove unnecessary casts
commit27aee705e061c45b5fc90a251b6343de8c385c88 authorAntoni Stevent <itzmjauz@gmail.com> dateThu 3 Jun 2021, 15:52 (5 years ago) parentf0fe558
1 file changed+5−6
helix-term/src/keymap.rs+5−6
helix-term/src/keymap.rs+5−6
@@ -131,7 +131,7 @@ pub fn default() -> Keymaps {
131131 KeyEvent {
132132 code: KeyCode::Left,
133133 modifiers: KeyModifiers::NONE
134− } => commands::move_char_left as Command,
134+ } => commands::move_char_left,
135135 KeyEvent {
136136 code: KeyCode::Down,
137137 modifiers: KeyModifiers::NONE
@@ -145,7 +145,6 @@ pub fn default() -> Keymaps {
145145 modifiers: KeyModifiers::NONE
146146 } => commands::move_char_right,
147147
148−
149148 key!('t') => commands::find_till_char,
150149 key!('f') => commands::find_next_char,
151150 key!('T') => commands::till_prev_char,
@@ -290,19 +289,19 @@ pub fn default() -> Keymaps {
290289 KeyEvent {
291290 code: KeyCode::Left,
292291 modifiers: KeyModifiers::NONE
293− } => commands::move_char_left as Command,
292+ } => commands::extend_char_left,
294293 KeyEvent {
295294 code: KeyCode::Down,
296295 modifiers: KeyModifiers::NONE
297− } => commands::move_line_down,
296+ } => commands::extend_line_down,
298297 KeyEvent {
299298 code: KeyCode::Up,
300299 modifiers: KeyModifiers::NONE
301− } => commands::move_line_up,
300+ } => commands::extend_line_up,
302301 KeyEvent {
303302 code: KeyCode::Right,
304303 modifiers: KeyModifiers::NONE
305− } => commands::move_char_right,
304+ } => commands::extend_char_right,
306305
307306 key!('w') => commands::extend_next_word_start,
308307 key!('b') => commands::extend_prev_word_start,