mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user