aboutsummaryrefslogtreecommitdiffstats
path: root/core/cell.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-09 10:49:36 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-09 10:51:45 +0000
commit08159094121698efe5822e9a79ed9c4a7633a9df (patch)
tree3f1c6fcdef475cc1dc47e2f541660ecd324da2fb /core/cell.moon
parentadd internals docs (diff)
downloadalive-08159094121698efe5822e9a79ed9c4a7633a9df.tar.gz
alive-08159094121698efe5822e9a79ed9c4a7633a9df.zip
bugfixes
Diffstat (limited to 'core/cell.moon')
-rw-r--r--core/cell.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cell.moon b/core/cell.moon
index f023b25..3567a6d 100644
--- a/core/cell.moon
+++ b/core/cell.moon
@@ -123,7 +123,7 @@ class Cell
buf ..= '...'
else
for i, child in ipairs @children
- buf ..= child\stringify depth - 1
+ buf ..= child\stringify if depth == -1 then -1 else depth - 1
buf ..= if depth > 0 then ' ' else @white[i]
if depth > 0