* mdocml: Don't let `in' creep past the right margin.
@ 2011-01-11 0:39 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-01-11 0:39 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-11 0:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-11 0:39 mdocml: Don't let `in' creep past the right margin kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).