From 405d8683dcd57ce185616da60568a8ae96ce9211 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Fri, 12 Jun 2015 13:42:23 +0800 Subject: [PATCH] Tabs are rendered as spaces on message line. This fixes debug info when $debug is TRUE. --- display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/display.c b/display.c index b0d5860..baee7ba 100644 --- a/display.c +++ b/display.c @@ -1420,8 +1420,9 @@ static void mlputs( unsigned char *s) { unicode_t c ; while( ((c = *s++) != 0) && (ttcol < term.t_ncol)) { - /* Accept UTF-8 sequence */ - if( c > 0xC1 && c <= 0xF4) { + if( c == '\t') /* Don't render tabulation */ + c = ' ' ; + else if( c > 0xC1 && c <= 0xF4) { /* Accept UTF-8 sequence */ char utf[ 4] ; char cc ; int bytes ;