diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-06 22:00:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-06 22:00:13 +0200 |
commit | 1614a14901558ca091329315d14a7d5e1b53aa47 (patch) | |
tree | 324ceeba0f8d5bda2f270b591a1beeed8e74125d /src/findfile.c | |
parent | 524f3b19ae16e08350010b5effe38d0637349285 (diff) | |
download | vim-git-1614a14901558ca091329315d14a7d5e1b53aa47.tar.gz |
patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
Diffstat (limited to 'src/findfile.c')
-rw-r--r-- | src/findfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/findfile.c b/src/findfile.c index 414dc4e14..ddb4d10d2 100644 --- a/src/findfile.c +++ b/src/findfile.c @@ -1337,8 +1337,8 @@ ff_wc_equal(char_u *s1, char_u *s2) prev2 = prev1; prev1 = c1; - i += MB_PTR2LEN(s1 + i); - j += MB_PTR2LEN(s2 + j); + i += mb_ptr2len(s1 + i); + j += mb_ptr2len(s2 + j); } return s1[i] == s2[j]; } |