diff --git a/app/lua/lua.c b/app/lua/lua.c index cc1c1b95..8f9cf870 100644 --- a/app/lua/lua.c +++ b/app/lua/lua.c @@ -468,7 +468,7 @@ int lua_main (int argc, char **argv) { void lua_handle_input (bool force) { - if (force || readline (&gLoad)) + if (gLoad.L && (force || readline (&gLoad))) dojob (&gLoad); }