From 38a0041bd5e46a53ec4d7356e2cc624aee071518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 20 Oct 2015 10:47:57 +0200 Subject: vis: try to support all lua versions >= 5.1 Make lpeg module table explicitly global, which should work with the different module loading semantics. --- vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index d075f8a..12f3b19 100644 --- a/vis.c +++ b/vis.c @@ -308,7 +308,7 @@ Vis *vis_new(Ui *ui) { Vis *vis = calloc(1, sizeof(Vis)); if (!vis) return NULL; - lua_State *L = lua_open(); + lua_State *L = luaL_newstate(); if (!(vis->lua = L)) goto err; luaL_openlibs(L); -- cgit v1.2.3