1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Fix fuzzy match to continue at next character. #133

This commit is contained in:
Dave Davenport 2015-06-25 02:54:00 +02:00
parent bcbb64f615
commit 9977d7ef69

View file

@ -192,6 +192,10 @@ static int fuzzy_token_match ( char **tokens, const char *input, int case_sensit
int compk_len = strlen ( tokens[j] );
for ( int id = 0; match && t != NULL && id < compk_len; id++ ) {
match = ( ( t = strchr ( t, tokens[j][id] ) ) != NULL );
// next should match the next character.
if(t != NULL) {
t++;
}
}
}
}