From ed1a9f25e07b6ba9355192a1ca8ebedd5495e953 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 12 May 2010 16:01:01 +0000 Subject: Tiny EOS patch. Back-end cues front-end through flag. Front-end cues output engine with flag. --- term.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'term.c') 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 * @@ -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) { -- cgit v1.2.3