Prettyfy output of 'functions' builtin a tiny bit

darcs-hash:20070422185627-ac50b-99b7c27d06f5a6d5e7a7b66da864317bf1019fe2.gz
This commit is contained in:
axel 2007-04-23 04:56:27 +10:00
parent dd48de068d
commit 003dfb99da

View file

@ -849,12 +849,7 @@ static void functions_def( wchar_t *name, string_buffer_t *out )
al_destroy( &ev );
sb_append2( out,
L"\n\t",
def,
L"\nend\n\n",
(void *)0);
sb_printf( out, L"\n\t%ls\nend\n", def );
}
@ -1065,6 +1060,9 @@ static int builtin_functions( wchar_t **argv )
{
if( !query )
{
if( i != woptind)
sb_append( sb_out, L"\n" );
functions_def( argv[i], sb_out );
}
}