aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
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);