From 0cb8824c17ba474b29ba4e734c6a6f20bba795eb Mon Sep 17 00:00:00 2001 From: WMJ Date: Sat, 27 Mar 2021 17:25:19 +0800 Subject: [PATCH] ! Kept toolbar when executing Delete command on SmartBar --- Codist/SmartBars/SmartBar.CommonEdit.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Codist/SmartBars/SmartBar.CommonEdit.cs b/Codist/SmartBars/SmartBar.CommonEdit.cs index 009e3973..e50266af 100644 --- a/Codist/SmartBars/SmartBar.CommonEdit.cs +++ b/Codist/SmartBars/SmartBar.CommonEdit.cs @@ -114,6 +114,7 @@ void AddDeleteCommand() { && snapshot[end] == ' ' && (end == snapshot.Length - 2 || "={<>(-+*/^!|?:~&%".IndexOf(snapshot[end + 1]) == -1)) { + ctx.KeepToolBar(false); s.Select(new SnapshotSpan(s.Start.Position, s.End.Position + 1), false); } }