summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 59fa0c905..b1d5557bd 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -836,7 +836,8 @@ layout_minmax_line(struct box *first,
if (min < width)
min = width;
- max += width;
+ if (width > 0)
+ max += width;
*line_has_height = true;
}