summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-23 08:15:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-23 08:15:53 +0000
commitce8ab0a1bb72b1a1bf7fbc11edfcad682e7d1619 (patch)
treef9109296dd1bfc80d2febbc132f5a98612a5283a /man_term.c
parent561cc96be291e4e8b9c01bd646f9404b4e1845ea (diff)
downloadmandoc-ce8ab0a1bb72b1a1bf7fbc11edfcad682e7d1619.tar.gz
even if the second argument to .IP is invalid, don't print it
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/man_term.c b/man_term.c
index e7b6a71d..a85f00fe 100644
--- a/man_term.c
+++ b/man_term.c
@@ -633,11 +633,10 @@ pre_IP(DECL_ARGS)
p->offset = mt->offset;
p->rmargin = mt->offset + len;
- if (ival < 0)
- break;
/* Set the saved left-margin. */
- mt->lmargin[mt->lmargincur] = (size_t)ival;
+ if (ival >= 0)
+ mt->lmargin[mt->lmargincur] = (size_t)ival;
savelit = MANT_LITERAL & mt->fl;
mt->fl &= ~MANT_LITERAL;