commit | 1614a14901558ca091329315d14a7d5e1b53aa47 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Oct 06 22:00:13 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Oct 06 22:00:13 2019 +0200 |
tree | 324ceeba0f8d5bda2f270b591a1beeed8e74125d | |
parent | 524f3b19ae16e08350010b5effe38d0637349285 [diff] [blame] |
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/terminal.c b/src/terminal.c index 52487a3..42a80cd 100644 --- a/src/terminal.c +++ b/src/terminal.c
@@ -5431,7 +5431,7 @@ 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;