commit 0d5689609ab6e547b15c22dd7f182c73db3f5ca9 from: Omar Polo date: Thu Mar 11 19:55:34 2021 UTC typos commit - fb2fdc624d46066bff5ae1dd9975bb19c32d7829 commit + 0d5689609ab6e547b15c22dd7f182c73db3f5ca9 blob - c4cf0cf3aa9ff64d2f8263f04cda0d08628d7945 blob + 7d6df521ba657feddb79fbba485b701f4e8c9963 --- ui.c +++ ui.c @@ -1192,11 +1192,12 @@ static int wrap_page(struct tab *tab) { struct line *l; - const char *prfx = line_prefixes[l->type].prfx1; + const char *prfx; empty_vlist(tab); TAILQ_FOREACH(l, &tab->page.head, lines) { + prfx = line_prefixes[l->type].prfx1; switch (l->type) { case LINE_TEXT: case LINE_LINK: @@ -1205,7 +1206,7 @@ wrap_page(struct tab *tab) case LINE_TITLE_3: case LINE_ITEM: case LINE_QUOTE: - wrap_text(tab, prfx1, l); + wrap_text(tab, prfx, l); break; case LINE_PRE_START: case LINE_PRE_END: