Rename surround to match_mode

pull/368/head
Gokul Soumya 3 years ago committed by Blaž Hrastnik
parent 753ed4cbc5
commit e0fd08d6df

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

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

Loading…
Cancel
Save