fixed pretty print depth issues

This commit is contained in:
Max Cahill 2021-11-26 16:50:44 +11:00
parent e731a167d8
commit 2d5555400d

View File

@ -81,6 +81,7 @@ function pretty._process(input, config, processing_state)
processing_state.depth = processing_state.depth + 1
if processing_state.depth > depth then
processing_state.depth = processing_state.depth - 1
return "{...}"
end