mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fix tab autocompletion
This commit is contained in:
parent
250d7c8475
commit
ed55ac6d81
|
@ -2745,14 +2745,14 @@ int str_utf8_comp_nocase_num(const char *a, const char *b, int num)
|
|||
|
||||
while(*a && *b)
|
||||
{
|
||||
if(a - old_a >= num)
|
||||
return 0;
|
||||
|
||||
code_a = str_utf8_tolower(str_utf8_decode(&a));
|
||||
code_b = str_utf8_tolower(str_utf8_decode(&b));
|
||||
|
||||
if(code_a != code_b)
|
||||
return code_a - code_b;
|
||||
|
||||
if(a - old_a >= num)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (unsigned char)*a - (unsigned char)*b;
|
||||
|
|
Loading…
Reference in a new issue