Exit select mode after toggle_comment. Fixes #597 (#598)

Consistent with yanking, exit select mode after toggling comment. Fixes #597
This commit is contained in:
Yerlan 2021-08-17 02:52:52 +02:00 committed by GitHub
parent 9912bd7821
commit 18c0509593
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3926,6 +3926,7 @@ fn toggle_comments(cx: &mut Context) {
doc.apply(&transaction, view.id); doc.apply(&transaction, view.id);
doc.append_changes_to_history(view.id); doc.append_changes_to_history(view.id);
exit_select_mode(cx);
} }
fn rotate_selections(cx: &mut Context, direction: Direction) { fn rotate_selections(cx: &mut Context, direction: Direction) {