diff options
-rw-r--r-- | term_ascii.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/term_ascii.c b/term_ascii.c index b7712dc4..abc70f03 100644 --- a/term_ascii.c +++ b/term_ascii.c @@ -269,7 +269,12 @@ locale_width(const struct termp *p, int c) { int rc; - return((rc = wcwidth(c)) < 0 ? 0 : rc); + if (c == ASCII_NBRSP) + c = ' '; + rc = wcwidth(c); + if (rc < 0) + rc = 0; + return(rc); } static void |