iswlower() and iswupper() are now used when fuzzy matching so that the score is correctly computed when using non-ascii characters
1 files changed, 1 insertions(+), 2 deletions(-) M src/match.c
M src/match.c +1 -2
@@ 195,8 195,7 @@ static void precompute_bonus(const wchar } else if(last_ch == L'-' || last_ch == L'_' || last_ch == L' ') { score = SCORE_MATCH_WORD; - } else if(last_ch >= L'a' && last_ch <= L'z' && - ch >= L'A' && ch <= L'Z') { + } else if(iswlower(last_ch) && iswupper(ch)) { /* CamelCase */ score = SCORE_MATCH_CAPITAL; } else if(last_ch == L'.') {