test: helpers.clear(): Set common env vars only if not passed.

This commit is contained in:
Justin M. Keyes
2017-02-03 04:18:16 +01:00
parent bbfdb84ae1
commit 978c95e5c4

View File

@@ -290,7 +290,9 @@ local function clear(...)
'NVIM_LOG_FILE',
'NVIM_RPLUGIN_MANIFEST',
}) do
env_tbl[k] = os.getenv(k)
if not env_tbl[k] then
env_tbl[k] = os.getenv(k)
end
end
env = {}
for k, v in pairs(env_tbl) do