From 8fdf9729d1541e56cdc60db11e1db3db347140b9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 18 Aug 2018 15:17:03 +0000 Subject: [PATCH] Unsurprisingly, zero-width non-breaking spaces have... width 0. --- term_ascii.c | 5 ++--- 1 file 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 * Copyright (c) 2014, 2015, 2017, 2018 Ingo Schwarze @@ -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 -- 2.47.1