aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term_ascii.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-18 15:17:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-18 15:17:03 +0000
commit8fdf9729d1541e56cdc60db11e1db3db347140b9 (patch)
treea04d602bcd473e6144b08fea77182db696cfcb30 /term_ascii.c
parentd4259559e03832a483906e3fbdece04d42fe0ed0 (diff)
downloadmandoc-8fdf9729d1541e56cdc60db11e1db3db347140b9.tar.gz
mandoc-8fdf9729d1541e56cdc60db11e1db3db347140b9.tar.zst
mandoc-8fdf9729d1541e56cdc60db11e1db3db347140b9.zip
Unsurprisingly, zero-width non-breaking spaces have... width 0.
Diffstat (limited to 'term_ascii.c')
-rw-r--r--term_ascii.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/term_ascii.c b/term_ascii.c
index f47ffd75..7d2ecb18 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -1,4 +1,4 @@
-/* $Id: term_ascii.c,v 1.61 2018/05/20 21:37:34 schwarze Exp $ */
+/* $Id: term_ascii.c,v 1.62 2018/08/18 15:17:03 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -196,8 +196,7 @@ terminal_sepline(void *arg)
static size_t
ascii_width(const struct termp *p, int c)
{
-
- return 1;
+ return c != ASCII_BREAK;
}
void