From 123d5ad36e406e3c4ac75d5f040e02891d13ba24 Mon Sep 17 00:00:00 2001 From: ame Date: Sat, 30 Dec 2023 14:43:50 -0600 Subject: better pprint --- src/io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index 27d85cc..f30f867 100644 --- a/src/io.c +++ b/src/io.c @@ -111,6 +111,8 @@ void i_pprint(lua_State* L, int indent, int skip_indent){ if(lua_type(L,-2) == LUA_TSTRING){ if(!skip) print_indentation(indent); printf(" '%s'"color_gray": "color_reset, lua_tostring(L,-2)); + } else { + if(!skip) print_indentation(indent + 1); } i_pprint(L,indent+1,1); printf(","); -- cgit v1.2.3