diff options
author | Blaž Hrastnik | 2021-06-04 01:30:18 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-04 02:03:40 +0000 |
commit | 8afd4e1bc21c244a4ed241630a0e845f4ab81f74 (patch) | |
tree | 0d298c97d3f2dfe89238ea9d296d5a6fde89a4c5 | |
parent | 43b92b24d2ed421625ff77c3a09a7909f7d82e02 (diff) |
Exit select mode on delete_selection
-rw-r--r-- | helix-term/src/commands.rs | 3 |
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) { |