diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-06 04:04:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 04:04:25 +0100 |
commit | 483e8257e5a28893bcd1de089715f82798d0f93a (patch) | |
tree | 6ce5bde550febda5ee22dab6989f7f71c4f6ce0c /src | |
parent | e5be3aaaefe75bd5ba1d0ac98bf1d9622e649adb (diff) | |
download | rneovim-483e8257e5a28893bcd1de089715f82798d0f93a.tar.gz rneovim-483e8257e5a28893bcd1de089715f82798d0f93a.tar.bz2 rneovim-483e8257e5a28893bcd1de089715f82798d0f93a.zip |
vim_getenv: $VIMRUNTIME fallback: ../share/nvim/runtime (#6223)
Do this on all systems, so that portable builds work everywhere. This
allows us to ship archives with this folder structure:
bin/nvim
share/nvim/runtime
then ./bin/nvim works without the user needing to explicitly set VIMRUNTIME.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/os/env.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index 1697d5edb2..a73d753e46 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -615,8 +615,7 @@ char *vim_getenv(const char *name) vim_path = (char *)p_hf; } -#ifdef WIN32 - // Find runtime path relative to the nvim binary i.e. ../share/runtime + // Find runtime path relative to the nvim binary: ../share/nvim/runtime if (vim_path == NULL) { char exe_name[MAXPATHL]; size_t exe_name_len = MAXPATHL; @@ -633,7 +632,6 @@ char *vim_getenv(const char *name) } } } -#endif if (vim_path != NULL) { // remove the file name |