on master help sign in
Exit select mode after toggle_comment. Fixes #597 (#598)

Consistent with yanking, exit select mode after toggling comment. Fixes #597

commit18c05095935509a85fc014379fc63a2b6b50aaf5 authorYerlan <yerlaser@gmail.com> dateTue 17 Aug 2021, 02:52 (5 years ago) parent9912bd7
1 file changed+1
helix-term/src/commands.rs+1
helix-term/src/commands.rs+1
@@ -3926,6 +3926,7 @@ fn toggle_comments(cx: &mut Context) {
39263926
39273927 doc.apply(&transaction, view.id);
39283928 doc.append_changes_to_history(view.id);
3929+ exit_select_mode(cx);
39293930}
39303931
39313932fn rotate_selections(cx: &mut Context, direction: Direction) {