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
1 changed files with 4 additions and 0 deletions

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++;
}
}
}
}