diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-11-08 09:30:50 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-11-08 09:30:50 -0500 |
commit | 7edbdb5c2057a8d3786cc9e3e73f62c4b6858a6d (patch) | |
tree | d66b787bcd763fac44db6ca4ed2fd863305595a6 /src/lpm.c | |
parent | e37fdc9713cacc6182299ab6f6c632f6bcb75926 (diff) | |
download | lite-xl-plugin-manager-7edbdb5c2057a8d3786cc9e3e73f62c4b6858a6d.tar.gz lite-xl-plugin-manager-7edbdb5c2057a8d3786cc9e3e73f62c4b6858a6d.zip |
Changed erroneous return; thanks to Jan for reporting.
Diffstat (limited to 'src/lpm.c')
-rw-r--r-- | src/lpm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -691,8 +691,7 @@ static int lpm_fetch(lua_State* L) { int ctx = luaL_ref(L, LUA_REGISTRYINDEX); if (lua_is_main_thread(L)) { lpm_fetch_thread(context); - lpm_fetchk(L, 0, ctx); - return 0; + return lpm_fetchk(L, 0, ctx); } else { context->thread = create_thread(lpm_fetch_thread, context); return lua_yieldk(L, 0, (lua_KContext)ctx, lpm_fetchk); |