Fix bug causing completion list to never update

Use actual 'partial' command input buffer instead of the explicit command name.
This commit is contained in:
Kawe Mazidjatari 2023-03-17 19:24:54 +01:00
parent fd1a5d76cf
commit 4e12402c76

View File

@ -516,7 +516,7 @@ bool CConsole::AutoComplete(void)
if (pCommand && pCommand->CanAutoComplete())
{
CUtlVector< CUtlString > commands;
int iret = pCommand->AutoCompleteSuggest(svCommand.c_str(), commands);
int iret = pCommand->AutoCompleteSuggest(m_szInputBuf, commands);
if (!iret)
{