aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-12 09:47:22 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-12 09:47:22 -0500
commita1c770ca2713b2d269f75390fede83c678b6e3df (patch)
treed4dd32e39ee6c77087e3695a0ff0c7f106505c76 /src/nvim/os/fs.c
parent970b5f2752feb3ba5c906c5019f5ea778ead5a90 (diff)
parent7c0f6d2380c11a5a2c1fee74f846a32e29ec1ba0 (diff)
downloadrneovim-a1c770ca2713b2d269f75390fede83c678b6e3df.tar.gz
rneovim-a1c770ca2713b2d269f75390fede83c678b6e3df.tar.bz2
rneovim-a1c770ca2713b2d269f75390fede83c678b6e3df.zip
Merge pull request #3291 from sethjackson/env-separator
Windows: use ';' as env $PATH separator
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r--src/nvim/os/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index 1a4c3495f2..21f0fc6f41 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -151,7 +151,7 @@ static bool is_executable_in_path(const char_u *name, char_u **abspath)
// Walk through all entries in $PATH to check if "name" exists there and
// is an executable file.
for (;; ) {
- const char *e = xstrchrnul(path, ':');
+ const char *e = xstrchrnul(path, ENV_SEPCHAR);
// Glue together the given directory from $PATH with name and save into
// buf.
@@ -169,7 +169,7 @@ static bool is_executable_in_path(const char_u *name, char_u **abspath)
return true;
}
- if (*e != ':') {
+ if (*e != ENV_SEPCHAR) {
// End of $PATH without finding any executable called name.
xfree(buf);
return false;