mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
Console: completion use Contains instead of StartWith
This commit is contained in:
@@ -590,7 +590,7 @@ void FCogEngineWindow_Console::RefreshCommandList()
|
||||
if (Command.IsEmpty())
|
||||
{ continue; }
|
||||
|
||||
if (CurrentUserInput.IsEmpty() == false && Command.StartsWith(CurrentUserInput) == false)
|
||||
if (CurrentUserInput.IsEmpty() == false && Command.Contains(CurrentUserInput) == false)
|
||||
{ continue; }
|
||||
|
||||
if (CommandList.Num() >= Config->NumHistoryCommands)
|
||||
@@ -611,7 +611,7 @@ void FCogEngineWindow_Console::RefreshCommandList()
|
||||
Commands.Add(InName);
|
||||
};
|
||||
|
||||
IConsoleManager::Get().ForEachConsoleObjectThatStartsWith(FConsoleObjectVisitor::CreateLambda(OnConsoleObject), *CurrentUserInputWithoutArgs);
|
||||
IConsoleManager::Get().ForEachConsoleObjectThatContains(FConsoleObjectVisitor::CreateLambda(OnConsoleObject), *CurrentUserInputWithoutArgs);
|
||||
}
|
||||
|
||||
if (Config->SortCommands)
|
||||
|
||||
Reference in New Issue
Block a user