Mercurial > vim
diff src/misc1.c @ 12716:351cf7c67bbe v8.0.1236
patch 8.0.1236: Mac features are confusing
commit https://github.com/vim/vim/commit/d057301b1f28736f094affa17b190244ad56e8d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 28 21:11:06 2017 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Oct 2017 21:15:35 +0200 |
parents | fad36581f788 |
children | ebb4f6c93598 |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -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)