mirror of https://github.com/davatorium/rofi.git
Don't do unneeded compares
This commit is contained in:
parent
db1331ed66
commit
bcbb64f615
|
@ -190,7 +190,7 @@ static int fuzzy_token_match ( char **tokens, const char *input, int case_sensit
|
||||||
for ( int j = 0; match && tokens[j]; j++ ) {
|
for ( int j = 0; match && tokens[j]; j++ ) {
|
||||||
char *t = compk;
|
char *t = compk;
|
||||||
int compk_len = strlen ( tokens[j] );
|
int compk_len = strlen ( tokens[j] );
|
||||||
for ( int id = 0; t != NULL && id < compk_len; id++ ) {
|
for ( int id = 0; match && t != NULL && id < compk_len; id++ ) {
|
||||||
match = ( ( t = strchr ( t, tokens[j][id] ) ) != NULL );
|
match = ( ( t = strchr ( t, tokens[j][id] ) ) != NULL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue