aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-28 09:48:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-28 09:48:44 +0000
commit7dc1a8e8ee7164f0075ce0212e359d4d164cfa82 (patch)
treeed1f3dcbc27947aeffef8dabc499c204b37c6c7a /term.c
parentc41f8acfaa961b42d569f0a8ee934543bc8423e5 (diff)
downloadmandoc-7dc1a8e8ee7164f0075ce0212e359d4d164cfa82.tar.gz
mandoc-7dc1a8e8ee7164f0075ce0212e359d4d164cfa82.tar.zst
mandoc-7dc1a8e8ee7164f0075ce0212e359d4d164cfa82.zip
Tiny commit clarifying flushln() documentation as to what refers to
visual screen output and what's an array index (getting closer to variable-width fonting).
Diffstat (limited to 'term.c')
-rw-r--r--term.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/term.c b/term.c
index c41482ca..2dbe73b5 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.151 2010/06/27 01:26:20 schwarze Exp $ */
+/* $Id: term.c,v 1.152 2010/06/28 09:48:44 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -133,9 +133,10 @@ term_flushln(struct termp *p)
size_t vbl; /* number of blanks to prepend to output */
size_t vend; /* end of word visual position on output */
size_t bp; /* visual right border position */
- int j; /* temporary loop index */
- int jhy; /* last hyphen before line overflow */
- size_t maxvis, mmax;
+ int j; /* temporary loop index for p->buf */
+ int jhy; /* last hyph before overflow w/r/t j */
+ size_t maxvis; /* output position of visible boundary */
+ size_t mmax; /* used in calculating bp */
/*
* First, establish the maximum columns of "visible" content.