aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-24 20:42:53 -0600
committerame <[email protected]>2023-12-24 20:42:53 -0600
commiteffd4b3cb361cd5f977704e06fc8c9954a5c0379 (patch)
tree71c5d25f82a74b5aea439bb0fa0b53dcde4b62a9 /src/io.c
parent2125ee40a74fad6d9c92f835dda590e35ffae0e5 (diff)
no newline option
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 70771b6..ed59dfa 100644
--- a/src/io.c
+++ b/src/io.c
@@ -95,7 +95,7 @@ void i_pprint(lua_State* L, int indent){
case LUA_TTABLE:
print_indentation(indent);
if(indent >= _max_depth && _max_depth >= 0) {printf("{"color_gray"..."color_reset"}"); break;}
- int skip = i_len(L,last_idx) < _start_nl_at;
+ int skip = i_len(L,last_idx) < _start_nl_at || _collapse_all;
printf("{");
if(!skip) printf("\n");
lua_pushnil(L);