mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Revert "win/os_env_exists(): workaround libuv bug #10734"
This reverts commit 278c5d452c
.
This commit is contained in:
parent
227ef71621
commit
bb6b1267e7
@ -102,9 +102,6 @@ bool os_env_exists(const char *name)
|
||||
assert(r != UV_EINVAL);
|
||||
if (r != 0 && r != UV_ENOENT && r != UV_ENOBUFS) {
|
||||
ELOG("uv_os_getenv(%s) failed: %d %s", name, r, uv_err_name(r));
|
||||
#ifdef WIN32
|
||||
return (r == UV_UNKNOWN);
|
||||
#endif
|
||||
}
|
||||
return (r == 0 || r == UV_ENOBUFS);
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ describe('environment variables', function()
|
||||
eq("", environ()['EMPTY_VAR'])
|
||||
eq(nil, environ()['DOES_NOT_EXIST'])
|
||||
end)
|
||||
|
||||
it('exists() handles empty env variable', function()
|
||||
clear({env={EMPTY_VAR=""}})
|
||||
eq(1, exists('$EMPTY_VAR'))
|
||||
|
Loading…
Reference in New Issue
Block a user