mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Fix broken debug in non-interactive mode
darcs-hash:20051020113001-ac50b-5a2517bbdc728070bc1fb9f22c5ed38717e85a5c.gz
This commit is contained in:
parent
ce27f08a44
commit
82fb46603d
1 changed files with 63 additions and 54 deletions
9
common.c
9
common.c
|
@ -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 );
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue