summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-03-06 13:02:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-03-06 13:02:43 +0000
commit611e51a9591bc8bb08db2b843ed4e45b0e19567b (patch)
tree2e0818eb4af9b2bea0979c04ce7c3c6420f4f3cd /term.c
parent81a8bde7e1b96fcaa41ea3eeb493fa2b628634b1 (diff)
downloadmandoc-611e51a9591bc8bb08db2b843ed4e45b0e19567b.tar.gz
prevent the skipvsp flag from creeping past actual text
Diffstat (limited to 'term.c')
-rw-r--r--term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.c b/term.c
index b32fd1f1..5480be34 100644
--- a/term.c
+++ b/term.c
@@ -413,6 +413,7 @@ term_word(struct termp *p, const char *word)
p->flags |= TERMP_NOSPACE;
p->flags &= ~(TERMP_SENTENCE | TERMP_NONEWLINE);
+ p->skipvsp = 0;
while ('\0' != *word) {
if ('\\' != *word) {