Rename surround to match_mode

This commit is contained in:
Gokul Soumya 2021-06-22 10:40:50 +05:30 committed by Blaž Hrastnik
parent 753ed4cbc5
commit e0fd08d6df
2 changed files with 3 additions and 3 deletions

View file

@ -256,7 +256,7 @@ impl Command {
view_mode,
left_bracket_mode,
right_bracket_mode,
surround
match_mode
);
}
@ -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 {

View file

@ -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,