diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-10-06 20:52:30 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-10-06 21:11:38 -0400 |
commit | 09232958ff9c7d4737701160549c8d64a0f92856 (patch) | |
tree | 44b704107b24cbe6d2777ab5556c98c7d645b45f /src/nvim/macros.h | |
parent | 8f20c50caa7fa008f5e6257ef0fc43620e3baeb1 (diff) | |
download | rneovim-09232958ff9c7d4737701160549c8d64a0f92856.tar.gz rneovim-09232958ff9c7d4737701160549c8d64a0f92856.tar.bz2 rneovim-09232958ff9c7d4737701160549c8d64a0f92856.zip |
vim-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.
https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r-- | src/nvim/macros.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index d11507fa6a..f6c8c0a4a0 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -110,8 +110,6 @@ // MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers. // PTR2CHAR(): get character from pointer. -// Get the length of the character p points to, including composing chars. -# define MB_PTR2LEN(p) mb_ptr2len(p) // Advance multi-byte pointer, skip over composing chars. # define MB_PTR_ADV(p) (p += mb_ptr2len((char_u *)p)) // Advance multi-byte pointer, do not skip over composing chars. |