diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-10-20 10:47:57 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-08 13:37:24 +0100 |
| commit | 38a0041bd5e46a53ec4d7356e2cc624aee071518 (patch) | |
| tree | 55a2194bc81433880f7fa59d58c49fd9f2201e08 /vis.c | |
| parent | cbc96c96d193829fc882c5b4d83c2006a232cfe6 (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
