1
0
forked from aniani/vim

patch 8.0.1236: Mac features are confusing

Problem:    Mac features are confusing.
Solution:   Make feature names more consistent, add "osxdarwin". Rename
            feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
This commit is contained in:
Bram Moolenaar
2017-10-28 21:11:06 +02:00
parent ef83956e1e
commit d057301b1f
38 changed files with 268 additions and 383 deletions

View File

@@ -4334,12 +4334,8 @@ vim_getenv(char_u *name, int *mustfree)
}
/* remove trailing path separator */
#ifndef MACOS_CLASSIC
/* With MacOS path (with colons) the final colon is required */
/* to avoid confusion between absolute and relative path */
if (pend > p && after_pathsep(p, pend))
--pend;
#endif
#ifdef MACOS_X
if (p == exe_name || p == p_hf)
@@ -4499,9 +4495,9 @@ get_env_name(
expand_T *xp UNUSED,
int idx)
{
# if defined(AMIGA) || defined(__MRC__) || defined(__SC__)
# if defined(AMIGA)
/*
* No environ[] on the Amiga and on the Mac (using MPW).
* No environ[] on the Amiga.
*/
return NULL;
# else
@@ -10996,9 +10992,6 @@ gen_expand_wildcards(
{
char_u *t = backslash_halve_save(p);
#if defined(MACOS_CLASSIC)
slash_to_colon(t);
#endif
/* When EW_NOTFOUND is used, always add files and dirs. Makes
* "vim c:/" work. */
if (flags & EW_NOTFOUND)