From 9572664060cc4b498a5ac667a2e93e8b2df803d9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 6 Apr 2015 14:59:21 +0000 Subject: 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). --- man_term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man_term.c b/man_term.c index 113f3740..a96c309b 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.177 2015/04/06 13:35:08 schwarze Exp $ */ +/* $Id: man_term.c,v 1.178 2015/04/06 14:59:21 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -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); } -- cgit v1.2.3-56-ge451