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:
parent
bcbb64f615
commit
9977d7ef69
1 changed files with 4 additions and 0 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue