summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/text.c1
1 files changed, 1 insertions, 0 deletions
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;