Tabs are rendered as spaces on message line. This fixes debug info when $debug is TRUE.

This commit is contained in:
Renaud 2015-06-12 13:42:23 +08:00
parent 90c170e200
commit 405d8683dc
1 changed files with 3 additions and 2 deletions

View File

@ -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 ;