From e0fd08d6df93c7a42289ee9859406077c1dbf638 Mon Sep 17 00:00:00 2001
From: Gokul Soumya <gokulps15@gmail.com>
Date: Tue, 22 Jun 2021 10:40:50 +0530
Subject: [PATCH] Rename surround to match_mode

---
 helix-term/src/commands.rs | 4 ++--
 helix-term/src/keymap.rs   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 59aa25ee..6281cfe4 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -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 {
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index dabb8adf..57d1e5a2 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -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,