aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Mehri2023-11-01 15:14:17 +0000
committerMichael Davis2023-11-18 07:07:57 +0000
commit34de1cab623c03b2ffdafb54714bc67cbabcf9e9 (patch)
tree73b2f8331425445e6fb75bf33b4e5618193761c3
parent2acf5e365e3a24ef244665435824ccb1abbef80a (diff)
make indent/unindent exit select mode
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 648aa96e..7f9e9d01 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -4207,6 +4207,7 @@ fn indent(cx: &mut Context) {
}),
);
doc.apply(&transaction, view.id);
+ exit_select_mode(cx);
}
fn unindent(cx: &mut Context) {
@@ -4246,6 +4247,7 @@ fn unindent(cx: &mut Context) {
let transaction = Transaction::change(doc.text(), changes.into_iter());
doc.apply(&transaction, view.id);
+ exit_select_mode(cx);
}
fn format_selections(cx: &mut Context) {