summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-06 14:59:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-06 14:59:21 +0000
commit3659cf8ba988c65563a22589e56fcd2c7ca01330 (patch)
tree3f4a484cc7d7a77043f3355137cd5059c09e12de /man_term.c
parent5559a4a725d33a4f913276cda2e8e9b9b847765b (diff)
downloadmandoc-3659cf8ba988c65563a22589e56fcd2c7ca01330.tar.gz
On a new RS nesting level, the saved width starts from the default
width, not from the saved width of the previous level. Improves xterm(1) and XSetEventQueueOwner(3); found in transcode_filter(1).
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index c688c545..aac54eef 100644
--- a/man_term.c
+++ b/man_term.c
@@ -895,7 +895,7 @@ pre_RS(DECL_ARGS)
if (++mt->lmarginsz < MAXMARGINS)
mt->lmargincur = mt->lmarginsz;
- mt->lmargin[mt->lmargincur] = mt->lmargin[mt->lmargincur - 1];
+ mt->lmargin[mt->lmargincur] = term_len(p, p->defindent);
return(1);
}