summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-05-24 21:51:20 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-05-24 21:51:20 +0000
commite4081855b3ccc752fd8d5c743e87ad84478c748c (patch)
tree3547f69f52972cb996e650c41652f7fd47b5cf5a /term.h
parentd0f1de7c988060895fa78550174754f334d3b8ff (diff)
downloadmandoc-e4081855b3ccc752fd8d5c743e87ad84478c748c.tar.gz
sync to OpenBSD:
save the visual cursor position in term_flushln() and use that to avoid multiple blank lines in nested lists while still putting subsequent empty list tags each on their own line; "go ahead" kristaps@
Diffstat (limited to 'term.h')
-rw-r--r--term.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.h b/term.h
index 043178e4..0adbfd13 100644
--- a/term.h
+++ b/term.h
@@ -39,6 +39,7 @@ struct termp {
size_t offset; /* Margin offest. */
size_t tabwidth; /* Distance of tab positions. */
size_t col; /* Bytes in buf. */
+ size_t viscol; /* Chars on current line. */
int overstep; /* See termp_flushln(). */
int flags;
#define TERMP_SENTENCE (1 << 1) /* Space before a sentence. */