aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorAntoni Stevent2021-06-03 13:52:50 +0000
committerBlaž Hrastnik2021-06-03 14:24:24 +0000
commit27aee705e061c45b5fc90a251b6343de8c385c88 (patch)
tree03412ed340f3879bb432569dcc570cd64d1bf19f /helix-term
parentf0fe558f38aca040f00776575983cacbe9b7d011 (diff)
use correct _extend methods, also remove unnecessary casts
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/keymap.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index b7011c92..07012208 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -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,