summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/man_term.c b/man_term.c
index 1d3d663a..dea8b1dd 100644
--- a/man_term.c
+++ b/man_term.c
@@ -251,7 +251,7 @@ pre_literal(DECL_ARGS)
* indentation has to be set up explicitly.
*/
if (MAN_HP == n->parent->tok && p->rmargin < p->maxrmargin) {
- p->offset = p->rmargin + 1;
+ p->offset = p->rmargin;
p->rmargin = p->maxrmargin;
p->flags &= ~(TERMP_NOBREAK | TERMP_TWOSPACE);
p->flags |= TERMP_NOSPACE;
@@ -469,9 +469,7 @@ pre_HP(DECL_ARGS)
len = (size_t)ival;
one = term_len(p, 1);
- if (len > one)
- len -= one;
- else
+ if (len < one)
len = one;
p->offset = mt->offset;