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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user