aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index d62b5e2c21..72b97736fc 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -25,7 +25,7 @@
#include "nvim/ascii.h"
#ifdef WIN32
-#include "nvim/os/env.h"
+#include "nvim/os/os.h"
#endif
#include "nvim/lua/executor.h"
@@ -309,7 +309,7 @@ nlua_print_error:
return 0;
}
-/// debug.debug implementation: interaction with user while debugging
+/// debug.debug: interaction with user while debugging.
///
/// @param lstate Lua interpreter state.
int nlua_debug(lua_State *lstate)
@@ -350,9 +350,9 @@ int nlua_debug(lua_State *lstate)
}
#ifdef WIN32
-/// os.getenv implementation: On Windows, uv_os_setenv does not update _environ,
-/// so we need to use os_getenv instead of getenv. Therefore we will apply a
-/// monkey patch here.
+/// os.getenv: override os.getenv to maintain coherency. #9681
+///
+/// uv_os_setenv uses SetEnvironmentVariableW which does not update _environ.
///
/// @param lstate Lua interpreter state.
static int nlua_getenv(lua_State *lstate)