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:
@@ -5431,7 +5431,7 @@ f_term_scrape(typval_T *argvars, typval_T *rettv)
|
||||
attrs = cellattr->attrs;
|
||||
fg = cellattr->fg;
|
||||
bg = cellattr->bg;
|
||||
len = MB_PTR2LEN(p);
|
||||
len = mb_ptr2len(p);
|
||||
mch_memmove(mbs, p, len);
|
||||
mbs[len] = NUL;
|
||||
p += len;
|
||||
|
Reference in New Issue
Block a user