mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-07 17:33:14 -04:00
Don't do unneeded compares
This commit is contained in:
parent
db1331ed66
commit
bcbb64f615
1 changed files with 1 additions and 1 deletions
|
@ -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++ ) {
|
||||
char *t = compk;
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue