diff options
-rw-r--r-- | chars.h | 2 | ||||
-rw-r--r-- | chars.in | 2 | ||||
-rw-r--r-- | term.c | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -17,6 +17,8 @@ #ifndef CHARS_H #define CHARS_H +#define ASCII_NBRSP 31 /* non-breaking space */ + __BEGIN_DECLS enum chars { @@ -31,7 +31,7 @@ */ /* Non-breaking, non-collapsing space uses unit separator. */ -static const char ascii_nbrsp[2] = { 31, 0 }; +static const char ascii_nbrsp[2] = { ASCII_NBRSP, 0 }; CHAR_TBL_START @@ -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]); |