summaryrefslogtreecommitdiffstatshomepage
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
commit4f3f2467baac85e3e184ff13cf9d87c8cad0e577 (patch)
tree5b6ae096c3fd5249306aeb28e32e346cd6957ca7 /term.h
parente02845a612e170851ce8a57d88d5ddf83b80b3d6 (diff)
downloadmandoc-4f3f2467baac85e3e184ff13cf9d87c8cad0e577.tar.gz
mandoc-4f3f2467baac85e3e184ff13cf9d87c8cad0e577.tar.zst
mandoc-4f3f2467baac85e3e184ff13cf9d87c8cad0e577.zip
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/term.h b/term.h
index f2ce1e08..09e24295 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.56 2010/05/24 21:34:16 schwarze Exp $ */
+/* $Id: term.h,v 1.57 2010/05/24 21:51:20 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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. */