summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-03-09 17:35:14 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-03-09 17:35:14 +0000
commitdda218f07760492b80b3bab6f1c7211fa04332f5 (patch)
tree9ec33511faf585c718c55e3004fb970a9e308438 /usr.bin/mandoc/term.c
parente56ac803f46aa9c48a064574f53e586f2491aed1 (diff)
prevent the skipvsp flag from creeping past actual text
Diffstat (limited to 'usr.bin/mandoc/term.c')
-rw-r--r--usr.bin/mandoc/term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c
index 88834e24d7d..79ac841a665 100644
--- a/usr.bin/mandoc/term.c
+++ b/usr.bin/mandoc/term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: term.c,v 1.104 2015/01/31 00:11:52 schwarze Exp $ */
+/* $OpenBSD: term.c,v 1.105 2015/03/09 17:35:13 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -411,6 +411,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) {