From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p0B0d1q4007228 for ; Mon, 10 Jan 2011 19:39:01 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p0B0d1oQ028386; Mon, 10 Jan 2011 19:39:01 -0500 (EST) Date: Mon, 10 Jan 2011 19:39:01 -0500 (EST) Message-Id: <201101110039.p0B0d1oQ028386@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Don't let `in' creep past the right margin. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Don't let `in' creep past the right margin. >From an assertion noted by Brad (at comstyle). Modified Files: -------------- mdocml: man_term.c Revision Data ------------- Index: man_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_term.c,v retrieving revision 1.94 retrieving revision 1.95 diff -Lman_term.c -Lman_term.c -u -p -r1.94 -r1.95 --- man_term.c +++ man_term.c @@ -397,6 +397,11 @@ pre_in(DECL_ARGS) else p->offset = v; + /* Don't let this creep beyond the right margin. */ + + if (p->offset > p->rmargin) + p->offset = p->rmargin; + return(0); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv