diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-18 15:17:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-18 15:17:03 +0000 |
commit | 8fdf9729d1541e56cdc60db11e1db3db347140b9 (patch) | |
tree | a04d602bcd473e6144b08fea77182db696cfcb30 /term_ascii.c | |
parent | d4259559e03832a483906e3fbdece04d42fe0ed0 (diff) | |
download | mandoc-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.c | 5 |
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 |