From f83be2421ca3ee7da00b28231d211a98a3a628ed Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 6 Mar 2015 13:02:43 +0000 Subject: prevent the skipvsp flag from creeping past actual text --- term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term.c') diff --git a/term.c b/term.c index 75c12f4a..ee2af9e6 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.244 2015/01/31 00:12:41 schwarze Exp $ */ +/* $Id: term.c,v 1.245 2015/03/06 13:02:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -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) { -- cgit v1.2.3-56-ge451