mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make chat commands completion case-insenstive
This commit is contained in:
parent
8d2de4b8c2
commit
f3a277c365
|
@ -353,7 +353,7 @@ bool CChat::OnInput(const IInput::CEvent &Event)
|
|||
|
||||
auto &Command = m_vCommands[Index];
|
||||
|
||||
if(str_startswith(Command.m_aName, pCommandStart))
|
||||
if(str_startswith_nocase(Command.m_aName, pCommandStart))
|
||||
{
|
||||
pCompletionCommand = &Command;
|
||||
m_CompletionChosen = Index + SearchType * NumCommands;
|
||||
|
|
Loading…
Reference in a new issue