Console: completion use Contains instead of StartWith
This commit is contained in:
1 parent
d5c6896766
commit
357bd9974e
1 file changed
+2
-2
@@ -590,7 +590,7 @@ void FCogEngineWindow_Console::RefreshCommandList()
|
|||||||
if (Command.IsEmpty())
|
if (Command.IsEmpty())
|
||||||
{ continue; }
|
{ continue; }
|
||||||
|
|
||||||
if (CurrentUserInput.IsEmpty() == false && Command.StartsWith(CurrentUserInput) == false)
|
if (CurrentUserInput.IsEmpty() == false && Command.Contains(CurrentUserInput) == false)
|
||||||
{ continue; }
|
{ continue; }
|
||||||
|
|
||||||
if (CommandList.Num() >= Config->NumHistoryCommands)
|
if (CommandList.Num() >= Config->NumHistoryCommands)
|
||||||
@@ -611,7 +611,7 @@ void FCogEngineWindow_Console::RefreshCommandList()
|
|||||||
Commands.Add(InName);
|
Commands.Add(InName);
|
||||||
};
|
};
|
||||||
|
|
||||||
IConsoleManager::Get().ForEachConsoleObjectThatStartsWith(FConsoleObjectVisitor::CreateLambda(OnConsoleObject), *CurrentUserInputWithoutArgs);
|
IConsoleManager::Get().ForEachConsoleObjectThatContains(FConsoleObjectVisitor::CreateLambda(OnConsoleObject), *CurrentUserInputWithoutArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config->SortCommands)
|
if (Config->SortCommands)
|
||||||
|
|||||||
Reference in new issue
Block a user