From cb08171e0f572fa2ba7e5dcafe1eb27dba1b124a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 17 Jul 2019 16:04:07 -0400 Subject: text_new(): Reset width after newlines --- diff --git a/src/text.c b/src/text.c index 68d86eb..7c395e3 100644 --- a/src/text.c +++ b/src/text.c @@ -58,6 +58,7 @@ text_new(const char *string) } } else if (*string == '\n') { text->width = MAX(text->width, width); + width = 0; ++text->height; } else { ++width; -- cgit v0.9.1