summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-17 16:06:03 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-17 16:06:03 (EDT)
commiteb0666356ad010478dc51f32dfdef09f256721cf (patch)
tree2a0ecb72720d319f7937057915bcef7d6eafbca5 /src
parentcb08171e0f572fa2ba7e5dcafe1eb27dba1b124a (diff)
text_new(): Increment through string
Diffstat (limited to 'src')
-rw-r--r--src/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index 7c395e3..d418f57 100644
--- a/src/text.c
+++ b/src/text.c
@@ -60,8 +60,10 @@ text_new(const char *string)
text->width = MAX(text->width, width);
width = 0;
++text->height;
+ ++string;
} else {
++width;
+ ++string;
}
}