aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 6ed6163a..994002c1 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1559,6 +1559,7 @@ static bool init_lua(lua_State *L, int argc, char **argv, bool reinit) {
while (lua_pushnil(L), lua_next(L, -2))
lua_pushnil(L), lua_replace(L, -2), lua_rawset(L, -3); // clear
lua_pop(L, 2); // package.loaded, _G
+ lua_gc(L, LUA_GCCOLLECT, 0);
}
lua_pushinteger(L, (intptr_t)L), lua_setglobal(L, "_LUA"); // for LPeg lexer
luaL_openlibs(L);