From 46ee503e7a7b0ca20bd5c923b9e433837e1af02d Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 15 Sep 1998 13:59:59 +0000 Subject: [PATCH] Fix mutt_display_char to map '\0' to itself regardless of the translation table we use. --- charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charset.c b/charset.c index 1b6379fcf..dd12df09a 100644 --- a/charset.c +++ b/charset.c @@ -190,7 +190,7 @@ UNICODE_MAP *mutt_get_translation(const char *_from, const char *_to) int mutt_display_char(int ch, UNICODE_MAP *map) { - if (!map || (ch < 0) || (ch > 255)) + if (!map || (ch <= 0) || (ch > 255)) return ch; return (*map)[ch]; -- 2.40.0