summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 7d2d484bd..5ba25846d 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -1886,8 +1886,9 @@ sds ldbCatStackValue(sds s, lua_State *lua, int idx) {
repr1 = ldbCatStackValue(repr1,lua,-1);
repr1 = sdscatlen(repr1,"; ",2);
/* Full repr. */
+ repr2 = sdscatlen(repr2,"[",1);
repr2 = ldbCatStackValue(repr2,lua,-2);
- repr2 = sdscatlen(repr2,"=",1);
+ repr2 = sdscatlen(repr2,"]=",2);
repr2 = ldbCatStackValue(repr2,lua,-1);
repr2 = sdscatlen(repr2,"; ",2);
lua_pop(lua,1); /* Stack: table, key. Ready for next iteration. */