summaryrefslogtreecommitdiffstats
path: root/tbl_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_term.c')
-rw-r--r--tbl_term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tbl_term.c b/tbl_term.c
index f4206405..54e0303b 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -66,6 +66,9 @@ term_tbl(struct termp *tp, const struct tbl_span *sp)
size_t rmargin, maxrmargin, tsz;
int ic, horiz, spans, vert;
+ if (tp->tbl.cols == NULL)
+ term_flushln(tp);
+
rmargin = tp->rmargin;
maxrmargin = tp->maxrmargin;
@@ -82,8 +85,6 @@ term_tbl(struct termp *tp, const struct tbl_span *sp)
*/
if (tp->tbl.cols == NULL) {
- term_flushln(tp);
-
tp->tbl.len = term_tbl_len;
tp->tbl.slen = term_tbl_strlen;
tp->tbl.arg = tp;