aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-04 01:30:18 +0000
committerBlaž Hrastnik2021-06-04 02:03:40 +0000
commit8afd4e1bc21c244a4ed241630a0e845f4ab81f74 (patch)
tree0d298c97d3f2dfe89238ea9d296d5a6fde89a4c5 /helix-term
parent43b92b24d2ed421625ff77c3a09a7909f7d82e02 (diff)
Exit select mode on delete_selection
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 35f1f0cd..3291d359 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -771,6 +771,9 @@ pub fn delete_selection(cx: &mut Context) {
_delete_selection(doc, view.id);
doc.append_changes_to_history(view.id);
+
+ // exit select mode, if currently in select mode
+ exit_select_mode(cx);
}
pub fn change_selection(cx: &mut Context) {