From 8afd4e1bc21c244a4ed241630a0e845f4ab81f74 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 4 Jun 2021 10:30:18 +0900 Subject: Exit select mode on delete_selection --- helix-term/src/commands.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-term/src/commands.rs') 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) { -- cgit v1.2.3-70-g09d2