mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.0.1236: Mac features are confusing #10837
Problem: Mac features are confusing.
Solution: Make feature names more consistent, add "osxdarwin". Rename
feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes vim/vim#2178)
d057301b1f
This commit is contained in:

committed by
Justin M. Keyes

parent
82aaac5baa
commit
34e4166673
@@ -11241,6 +11241,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
"mac",
|
"mac",
|
||||||
"macunix",
|
"macunix",
|
||||||
"osx",
|
"osx",
|
||||||
|
"osxdarwin",
|
||||||
#endif
|
#endif
|
||||||
"menu",
|
"menu",
|
||||||
"mksession",
|
"mksession",
|
||||||
|
@@ -109,7 +109,7 @@
|
|||||||
// MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers.
|
// MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers.
|
||||||
// PTR2CHAR(): get character from pointer.
|
// PTR2CHAR(): get character from pointer.
|
||||||
|
|
||||||
// Get the length of the character p points to
|
// Get the length of the character p points to, including composing chars.
|
||||||
# define MB_PTR2LEN(p) mb_ptr2len(p)
|
# define MB_PTR2LEN(p) mb_ptr2len(p)
|
||||||
// Advance multi-byte pointer, skip over composing chars.
|
// Advance multi-byte pointer, skip over composing chars.
|
||||||
# define MB_PTR_ADV(p) (p += mb_ptr2len((char_u *)p))
|
# define MB_PTR_ADV(p) (p += mb_ptr2len((char_u *)p))
|
||||||
|
Reference in New Issue
Block a user