diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-03-09 17:35:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-03-09 17:35:14 +0000 |
commit | dda218f07760492b80b3bab6f1c7211fa04332f5 (patch) | |
tree | 9ec33511faf585c718c55e3004fb970a9e308438 /usr.bin/mandoc | |
parent | e56ac803f46aa9c48a064574f53e586f2491aed1 (diff) |
prevent the skipvsp flag from creeping past actual text
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/term.c | 3 |
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) { |