aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-05-16 01:35:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-05-16 01:35:37 +0000
commit4d405feb6f8c720cd004dbba9d9a857bd1a4d95f (patch)
treefc2d12239dc05ce4b997411281c4d3903e4614b0 /term.c
parent56769575b59463282f2527c0dccc339862efdf04 (diff)
downloadmandoc-4d405feb6f8c720cd004dbba9d9a857bd1a4d95f.tar.gz
mandoc-4d405feb6f8c720cd004dbba9d9a857bd1a4d95f.tar.zst
mandoc-4d405feb6f8c720cd004dbba9d9a857bd1a4d95f.zip
sync to OpenBSD:
introduce a #define to get rid of the magic number describing the ASCII character used to represent non-breaking space; ok kristaps
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index e43d9692..1641df3d 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.134 2010/05/15 16:18:23 joerg Exp $ */
+/* $Id: term.c,v 1.135 2010/05/16 01:35:37 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -233,7 +233,7 @@ term_flushln(struct termp *p)
for ( ; i < (int)p->col; i++)
if (' ' == p->buf[i])
break;
- else if (31 == p->buf[i])
+ else if (ASCII_NBRSP == p->buf[i])
putchar(' ');
else
putchar(p->buf[i]);