neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit c1ee187f82141d778335955c9603c69e6f4785d7
parent cbbda3bcd77595eeabcc0fb70cee513e473833e6
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Mon,  5 Jun 2023 19:08:01 +0100

fix: vim.loop in luv threads (#23924)

Fixes #23914
Diffstat:
Msrc/nvim/lua/executor.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c @@ -580,6 +580,9 @@ static void nlua_common_vim_init(lua_State *lstate, bool is_thread, bool is_stan lua_pushvalue(lstate, -1); lua_setfield(lstate, -3, "uv"); + lua_pushvalue(lstate, -1); + lua_setfield(lstate, -3, "loop"); // deprecated + // package.loaded.luv = vim.uv // otherwise luv will be reinitialized when require'luv' lua_getglobal(lstate, "package");