on master help sign in
Rename surround to match_mode
commite0fd08d6df93c7a42289ee9859406077c1dbf638 authorGokul Soumya <gokulps15@gmail.com> dateTue 22 Jun 2021, 10:40 (5 years ago) parent753ed4c
2 files changed+3−3
helix-term/src/commands.rs+2−2 helix-term/src/keymap.rs+1−1
helix-term/src/commands.rs+2−2
@@ -256,7 +256,7 @@ impl Command {
256256 view_mode,
257257 left_bracket_mode,
258258 right_bracket_mode,
259− surround
259+ match_mode
260260 );
261261}
262262
@@ -3312,7 +3312,7 @@ fn right_bracket_mode(cx: &mut Context) {
33123312 })
33133313}
33143314
3315−fn surround(cx: &mut Context) {
3315+fn match_mode(cx: &mut Context) {
33163316 let count = cx.count;
33173317 cx.on_next_key(move |cx, event| {
33183318 if let KeyEvent {
helix-term/src/keymap.rs+1−1
@@ -200,7 +200,7 @@ impl Default for Keymaps {
200200 // extend_to_whole_line, crop_to_whole_line
201201
202202
203− key!('m') => Command::surround,
203+ key!('m') => Command::match_mode,
204204 key!('[') => Command::left_bracket_mode,
205205 key!(']') => Command::right_bracket_mode,
206206