From 18c05095935509a85fc014379fc63a2b6b50aaf5 Mon Sep 17 00:00:00 2001 From: Yerlan Date: Tue, 17 Aug 2021 02:52:52 +0200 Subject: [PATCH] Exit select mode after toggle_comment. Fixes #597 (#598) Consistent with yanking, exit select mode after toggling comment. Fixes #597 --- helix-term/src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index b5671723d..4c1549790 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) {