diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-17 16:04:07 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-17 16:04:07 (EDT) |
commit | cb08171e0f572fa2ba7e5dcafe1eb27dba1b124a (patch) | |
tree | ddddb58cbbfbe41825e4db84762bdde18c72e28f /src | |
parent | 807706f08f4ddff2c66f4592c0db0cd261dd6227 (diff) |
text_new(): Reset width after newlines
Diffstat (limited to 'src')
-rw-r--r-- | src/text.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |