From 8afd4e1bc21c244a4ed241630a0e845f4ab81f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Fri, 4 Jun 2021 10:30:18 +0900 Subject: [PATCH] Exit select mode on delete_selection --- helix-term/src/commands.rs | 3 +++ 1 file changed, 3 insertions(+) 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) {