Skip to content

Commit

Permalink
Exit select mode after toggle_comment. Fixes #597 (#598)
Browse files Browse the repository at this point in the history
Consistent with yanking, exit select mode after toggling comment. Fixes #597
  • Loading branch information
yerlaser authored Aug 17, 2021
1 parent 9912bd7 commit 18c0509
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 18c0509

Please sign in to comment.