aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-12 16:01:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-12 16:01:01 +0000
commited1a9f25e07b6ba9355192a1ca8ebedd5495e953 (patch)
treef76105ec4fa9d034fefaaef81d969d0549ecd196 /term.c
parent9f11efb0307eb4c4dbb4a8fff243321100e27573 (diff)
downloadmandoc-ed1a9f25e07b6ba9355192a1ca8ebedd5495e953.tar.gz
mandoc-ed1a9f25e07b6ba9355192a1ca8ebedd5495e953.tar.zst
mandoc-ed1a9f25e07b6ba9355192a1ca8ebedd5495e953.zip
Tiny EOS patch. Back-end cues front-end through flag. Front-end cues output engine with flag.
Diffstat (limited to 'term.c')
-rw-r--r--term.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/term.c b/term.c
index 2b6dd203..be1ffcc7 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.132 2010/05/07 04:50:44 kristaps Exp $ */
+/* $Id: term.c,v 1.133 2010/05/12 16:01:01 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -445,12 +445,17 @@ term_word(struct termp *p, const char *word)
break;
}
- if ( ! (TERMP_NOSPACE & p->flags))
+ if ( ! (TERMP_NOSPACE & p->flags)) {
bufferc(p, ' ');
+ if (TERMP_SENTENCE & p->flags)
+ bufferc(p, ' ');
+ }
if ( ! (p->flags & TERMP_NONOSPACE))
p->flags &= ~TERMP_NOSPACE;
+ p->flags &= ~TERMP_SENTENCE;
+
/* FIXME: use strcspn. */
while (*word) {