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/evalfunc.c | |
parent | 524f3b19ae16e08350010b5effe38d0637349285 (diff) |
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/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 26d8691ccf..4a04696d6b 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6454,7 +6454,7 @@ f_setcharsearch(typval_T *argvars, typval_T *rettv UNUSED) } else set_last_csearch(PTR2CHAR(csearch), - csearch, MB_PTR2LEN(csearch)); + csearch, mb_ptr2len(csearch)); } di = dict_find(d, (char_u *)"forward", -1); |