mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
* Fix a bug with command/cvar autocompletion
This commit is contained in:
parent
58c8175024
commit
7913ec3c4b
1 changed files with 6 additions and 1 deletions
|
@ -2934,7 +2934,12 @@ static void FindMatches( const char *s ) {
|
|||
}
|
||||
|
||||
// cut shortestMatch to the amount common with s
|
||||
for ( i = 0 ; s[i] ; i++ ) {
|
||||
for ( i = 0 ; shortestMatch[i] ; i++ ) {
|
||||
if ( i >= strlen( s ) ) {
|
||||
shortestMatch[i] = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if ( tolower(shortestMatch[i]) != tolower(s[i]) ) {
|
||||
shortestMatch[i] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue