From e934df374d04c886cc1fc67e294003e9488e3a5a Mon Sep 17 00:00:00 2001 From: Alexander Fast Date: Thu, 21 Aug 2014 13:12:29 +0200 Subject: [PATCH] Fixes double auto completion in in-game chat. --- OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs index c7cddb380d..018b4ca69a 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/IngameChatLogic.cs @@ -184,6 +184,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic if (string.IsNullOrEmpty(chatText.Text)) return false; + if (chatText.Text.LastOrDefault() == ' ') + return false; + var suggestion = ""; if (chatText.Text.StartsWith("/"))