From 7c4273c4e28ea9191d54bd8f3efdbdae95170efd Mon Sep 17 00:00:00 2001 From: Bobby Lucero Date: Sat, 12 Jul 2025 02:28:05 -0400 Subject: [PATCH] delete spaces properly --- MicroUI.cs/Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MicroUI.cs/Program.cs b/MicroUI.cs/Program.cs index da054a3..8f41538 100644 --- a/MicroUI.cs/Program.cs +++ b/MicroUI.cs/Program.cs @@ -121,7 +121,14 @@ class Program } else if (expression.Length > 0) { - expression = expression[..^1]; + if (expression.EndsWith(" ")) + { + expression = expression[..^3]; + } + else + { + expression = expression[..^1]; + } if (currentInput.Length > 0) currentInput = currentInput[..^1]; if (expression.Length == 0)