refactor: remove char_u from arguments of fuzzy_match()

Also change some single quotes to double quotes.
This commit is contained in:
zeertzjq
2023-01-17 11:24:30 +08:00
parent f6929ea51d
commit 34e62d3875
2 changed files with 21 additions and 22 deletions

View File

@@ -5230,8 +5230,7 @@ static bool vgr_match_buflines(qf_list_T *qfl, char *fname, buf_T *buf, char *sp
const size_t sz = sizeof(matches) / sizeof(matches[0]);
// Fuzzy string match
while (fuzzy_match((char_u *)str + col, (char_u *)spat, false, &score, matches,
(int)sz) > 0) {
while (fuzzy_match(str + col, spat, false, &score, matches, (int)sz) > 0) {
// Pass the buffer number so that it gets used even for a
// dummy buffer, unless duplicate_name is set, then the
// buffer will be wiped out below.