summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-02 10:08:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-02 10:08:06 +0000
commit110fb75482f7f2c0f483cf8b3643b20e6600a1c4 (patch)
tree39019d1d0c3ea61d852d9f5fdd3fee3b59fd9051 /term.c
parentefe93b8f37e682132d735c3ed77f4c64aedc5aef (diff)
downloadmandoc-110fb75482f7f2c0f483cf8b3643b20e6600a1c4.tar.gz
Fix the implementation and documentation of \c (continue text input line).
In particular, make it work in no-fill mode, too. Reminded by Carsten dot Kunze at arcor dot de (Heirloom roff).
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index f45c96b8..2728d356 100644
--- a/term.c
+++ b/term.c
@@ -417,7 +417,7 @@ term_word(struct termp *p, const char *word)
else
p->flags |= TERMP_NOSPACE;
- p->flags &= ~TERMP_SENTENCE;
+ p->flags &= ~(TERMP_SENTENCE | TERMP_NONEWLINE);
while ('\0' != *word) {
if ('\\' != *word) {
@@ -487,7 +487,7 @@ term_word(struct termp *p, const char *word)
if (TERMP_SKIPCHAR & p->flags)
p->flags &= ~TERMP_SKIPCHAR;
else if ('\0' == *word)
- p->flags |= TERMP_NOSPACE;
+ p->flags |= (TERMP_NOSPACE | TERMP_NONEWLINE);
continue;
case ESCAPE_SKIPCHAR:
p->flags |= TERMP_SKIPCHAR;