aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-17 11:24:30 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-01-17 12:48:31 +0800
commit34e62d387509bb3eec9aafdd9b35a6d832cfd10f (patch)
tree261f4eb146733d85719a75226ad1391f9c511195 /src/nvim/quickfix.c
parentf6929ea51d21034c6ed00d68a727c2c7cd7ec6ac (diff)
downloadrneovim-34e62d387509bb3eec9aafdd9b35a6d832cfd10f.tar.gz
rneovim-34e62d387509bb3eec9aafdd9b35a6d832cfd10f.tar.bz2
rneovim-34e62d387509bb3eec9aafdd9b35a6d832cfd10f.zip
refactor: remove char_u from arguments of fuzzy_match()
Also change some single quotes to double quotes.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index c895ac16f1..3d09fa1030 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -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.