summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-06 22:00:13 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-06 22:00:13 +0200
commit1614a14901558ca091329315d14a7d5e1b53aa47 (patch)
tree324ceeba0f8d5bda2f270b591a1beeed8e74125d /src/eval.c
parent524f3b19ae16e08350010b5effe38d0637349285 (diff)
downloadvim-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/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 954e07fb4..0fe8fd34a 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -6446,7 +6446,7 @@ do_string_sub(
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;