diff options
author | 2010-10-25 21:13:07 -0400 | |
---|---|---|
committer | 2010-10-25 21:13:07 -0400 | |
commit | 844e2c125d69298efe2c8b72a152c4c8f663759d (patch) | |
tree | 467f3028d9d8da361128dde12a0982e7219c0b38 /src | |
parent | 4d5a637dbcfa3e10cf6913d5df528d4f7cdcd5ae (diff) | |
download | textadept-844e2c125d69298efe2c8b72a152c4c8f663759d.tar.gz textadept-844e2c125d69298efe2c8b72a152c4c8f663759d.zip |
Fix gui.dialog() bug with more than one table arg; src/textadept.c
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index 45d04e7f..b7df6c27 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1961,7 +1961,7 @@ static int l_cf_gui_dialog(lua_State *lua) { int len = lua_objlen(lua, j); for (k = 1; k <= len; k++) { lua_rawgeti(lua, j, k); - argv[i++] = luaL_checkstring(lua, j + 1); + argv[i++] = luaL_checkstring(lua, -1); lua_pop(lua, 1); } } else argv[i++] = luaL_checkstring(lua, j); |