aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c1
-rw-r--r--src/nvim/macros.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 3d56522f79..1570af07d7 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -11241,6 +11241,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
"mac",
"macunix",
"osx",
+ "osxdarwin",
#endif
"menu",
"mksession",
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 018985fad2..760f690e87 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -109,7 +109,7 @@
// 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
+// 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))