patch 8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
diff --git a/src/eval.c b/src/eval.c
index 954e07f..0fe8fd3 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -6446,7 +6446,7 @@
if (zero_width == regmatch.startp[0])
{
/* avoid getting stuck on a match with an empty string */
- i = MB_PTR2LEN(tail);
+ i = mb_ptr2len(tail);
mch_memmove((char_u *)ga.ga_data + ga.ga_len, tail,
(size_t)i);
ga.ga_len += i;