Unnamed repository; edit this file 'description' to name the repository.
Exit select mode after toggle_comment. Fixes #597 (#598)
Consistent with yanking, exit select mode after toggling comment. Fixes #597
Yerlan 2021-08-17
parent 9912bd7 · commit 18c0509
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index b5671723..4c154979 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3926,6 +3926,7 @@ fn toggle_comments(cx: &mut Context) {
doc.apply(&transaction, view.id);
doc.append_changes_to_history(view.id);
+ exit_select_mode(cx);
}
fn rotate_selections(cx: &mut Context, direction: Direction) {