diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index e73fe2ed..a783fc68 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1528,6 +1528,7 @@ where
     });
 
     doc.apply(&transaction, view.id);
+    exit_select_mode(cx);
 }
 
 fn switch_case(cx: &mut Context) {