Fixes double auto completion.

Pressing tab twice would auto complete (the same name) twice.
Auto completion is now disabled when last character in sentence is a
space.
This commit is contained in:
Alexander Fast
2014-08-21 13:05:04 +02:00
parent bab7f765dd
commit a73898d441

View File

@@ -785,6 +785,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (chatText == null || string.IsNullOrEmpty(chatText.Text))
return false;
if (chatText.Text.LastOrDefault() == ' ')
return false;
var suggestion = "";
var oneWord = !chatText.Text.Contains(' ');
var toComplete = oneWord