1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 15:26:23 -05:00

Show xA0 (nbsp) as a non-printable character

I want to see the difference between space and nbsp, and I consider nbsp
to be a control character, so show it as such.  Even if it is
technically "printable".

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-08-22 09:25:04 -07:00
parent 823786d263
commit c718cb2a4a

View File

@ -194,7 +194,7 @@ static void vtputc(unsigned char c)
return;
}
if (c >= 0x80 && c < 0xA0) {
if (c >= 0x80 && c <= 0xA0) {
static const char hex[] = "0123456789abcdef";
vtputc('\\');
vtputc(hex[c >> 4]);