summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-07 02:14:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-07 02:14:09 +0000
commit955d8c0b01f8bcb2337da16b09f839e0f9cfd8b6 (patch)
tree0545395b9109f87381c1ecb3e0e80ffa03e6385a /term.h
parent29a53f97793b69d7bc6667efd7fdcdce180a5997 (diff)
downloadmandoc-955d8c0b01f8bcb2337da16b09f839e0f9cfd8b6.tar.gz
The \h escape sequence provides another method for moving backwards,
and after that, previously written output gets overwritten, but overwriting with blanks does *not* erase previously written content. Yes, manual pages exist that are crazy enough to rely on that...
Diffstat (limited to 'term.h')
-rw-r--r--term.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/term.h b/term.h
index a4dbdf42..fa51d633 100644
--- a/term.h
+++ b/term.h
@@ -62,7 +62,8 @@ struct termp {
size_t maxrmargin; /* Max right margin. */
size_t maxcols; /* Max size of buf. */
size_t offset; /* Margin offest. */
- size_t col; /* Bytes in buf. */
+ size_t col; /* Byte position in buf. */
+ size_t lastcol; /* Bytes in buf. */
size_t viscol; /* Chars on current line. */
size_t trailspace; /* See termp_flushln(). */
size_t minbl; /* Minimum blanks before next field. */