aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-22 09:25:04 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-22 09:25:04 -0700
commitc718cb2a4a204627d6c2a9cfb1ac8e88c15a198b (patch)
tree40df41430cef8c6a71ee50e4f8ca6af89cdd8360
parent823786d263fc88ef9343d56970044be17b6dd755 (diff)
downloaduemacs-c718cb2a4a204627d6c2a9cfb1ac8e88c15a198b.tar.gz
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>
-rw-r--r--display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/display.c b/display.c
index c6cb8a3..77e05a4 100644
--- a/display.c
+++ b/display.c
@@ -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]);