aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-30 14:43:50 -0600
committerame <[email protected]>2023-12-30 14:43:50 -0600
commit123d5ad36e406e3c4ac75d5f040e02891d13ba24 (patch)
treed0c8de4967205a9d91d538c1f90aac4cbc4b02f5
parent553216c9a9456e969cac2ed44047389735587803 (diff)
better pprint
-rw-r--r--readme.md2
-rw-r--r--src/io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index c13dfe5..f7f4255 100644
--- a/readme.md
+++ b/readme.md
@@ -8,5 +8,3 @@ todo:
- (working on seperatley) gui for graphs
- fix -O3 breaking some hashes (not sure if i care)
-
- - fix pprint (make it look better)
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(",");