From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id fc94d22d for ; Wed, 28 Nov 2018 08:44:24 -0500 (EST) Date: Wed, 28 Nov 2018 08:44:24 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: additional check needed after the previous (box drawing) patch X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: <381d90dd5f5b9728@fantadrom.bsd.lv> Log Message: ----------- additional check needed after the previous (box drawing) patch Modified Files: -------------- mandoc: tbl_term.c Revision Data ------------- Index: tbl_term.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/tbl_term.c,v retrieving revision 1.62 retrieving revision 1.63 diff -Ltbl_term.c -Ltbl_term.c -u -p -r1.62 -r1.63 --- tbl_term.c +++ tbl_term.c @@ -437,11 +437,14 @@ term_tbl(struct termp *tp, const struct * but not after the last column. */ - if (fc == 0 && ((uvert == 0 && dvert == 0 && - (cp->next == NULL || + if (fc == 0 && + ((uvert == 0 && dvert == 0 && + cp != NULL && (cp->next == NULL || !IS_HORIZ(cp->next))) || - tp->tcol + 1 == tp->tcols + tp->lasttcol)) { - cp = cp->next; + tp->tcol + 1 == + tp->tcols + tp->lasttcol)) { + if (cp != NULL) + cp = cp->next; continue; } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv