Skip to content

Commit

Permalink
Rename surround to match_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sudormrfbin authored and archseer committed Jun 22, 2021
1 parent 753ed4c commit e0fd08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl Command {
view_mode,
left_bracket_mode,
right_bracket_mode,
surround
match_mode
);
}

Expand Down Expand Up @@ -3312,7 +3312,7 @@ fn right_bracket_mode(cx: &mut Context) {
})
}

fn surround(cx: &mut Context) {
fn match_mode(cx: &mut Context) {
let count = cx.count;
cx.on_next_key(move |cx, event| {
if let KeyEvent {
Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl Default for Keymaps {
// extend_to_whole_line, crop_to_whole_line


key!('m') => Command::surround,
key!('m') => Command::match_mode,
key!('[') => Command::left_bracket_mode,
key!(']') => Command::right_bracket_mode,

Expand Down

0 comments on commit e0fd08d

Please sign in to comment.