Fix broken debug in non-interactive mode

darcs-hash:20051020113001-ac50b-5a2517bbdc728070bc1fb9f22c5ed38717e85a5c.gz
This commit is contained in:
axel 2005-10-20 21:30:01 +10:00
parent ce27f08a44
commit 82fb46603d

View file

@ -816,6 +816,9 @@ void debug( int level, wchar_t *msg, ... )
sb_vprintf( &sb, msg, va );
va_end( va );
if( screen_width )
{
start = pos = (wchar_t *)sb.buff;
while( 1 )
{
@ -885,6 +888,12 @@ void debug( int level, wchar_t *msg, ... )
start=pos;
}
}
else
{
fwprintf( stderr, L"%ls", sb.buff );
}
putwc( L'\n', stderr );
}