aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-20 10:47:57 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 13:37:24 +0100
commit38a0041bd5e46a53ec4d7356e2cc624aee071518 (patch)
tree55a2194bc81433880f7fa59d58c49fd9f2201e08 /vis.c
parentcbc96c96d193829fc882c5b4d83c2006a232cfe6 (diff)
downloadvis-38a0041bd5e46a53ec4d7356e2cc624aee071518.tar.gz
vis-38a0041bd5e46a53ec4d7356e2cc624aee071518.tar.xz
vis: try to support all lua versions >= 5.1
Make lpeg module table explicitly global, which should work with the different module loading semantics.
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
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);