summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_term.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-04-06 14:58:53 +0000
committerschwarze <schwarze@openbsd.org>2015-04-06 14:58:53 +0000
commitaa1fdc08c958b17753438dadf104e0362e6de81b (patch)
tree5d91436c3b2c83b4332d18252777079e6ca71996 /usr.bin/mandoc/man_term.c
parentswitch back from roundup2() and roundup() to round_up() (diff)
downloadwireguard-openbsd-aa1fdc08c958b17753438dadf104e0362e6de81b.tar.xz
wireguard-openbsd-aa1fdc08c958b17753438dadf104e0362e6de81b.zip
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 'usr.bin/mandoc/man_term.c')
-rw-r--r--usr.bin/mandoc/man_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c
index 066d25c707f..ef2cfefc014 100644
--- a/usr.bin/mandoc/man_term.c
+++ b/usr.bin/mandoc/man_term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_term.c,v 1.130 2015/04/06 13:34:54 schwarze Exp $ */
+/* $OpenBSD: man_term.c,v 1.131 2015/04/06 14:58:53 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -893,7 +893,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);
}