aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 08:21:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 08:21:05 +0000
commitc55c7c742e50a932784d8cd8689f4ad216fcc91f (patch)
tree12cfb0023cd119f9f5381c88897da41a2751843e /term.c
parent0e3a34d005ada7fe44f2109d7f478eaa1cdebbfe (diff)
downloadmandoc-c55c7c742e50a932784d8cd8689f4ad216fcc91f.tar.gz
mandoc-c55c7c742e50a932784d8cd8689f4ad216fcc91f.tar.zst
mandoc-c55c7c742e50a932784d8cd8689f4ad216fcc91f.zip
Fixed \c support for all input and output modes (documented in mandoc_char.7).
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term.c b/term.c
index 4d44ad0f..0d2c1ef6 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.126 2009/11/12 05:58:30 kristaps Exp $ */
+/* $Id: term.c,v 1.127 2009/11/12 08:21:06 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -487,7 +487,10 @@ term_word(struct termp *p, const char *word)
default:
break;
}
+
word += sz;
+ if (DECO_NOSPACE == deco && '\0' == *word)
+ p->flags |= TERMP_NOSPACE;
}
if (sv[0] && 0 == sv[1])