diff options
author | 2007-04-23 04:56:27 +1000 | |
---|---|---|
committer | 2007-04-23 04:56:27 +1000 | |
commit | 003dfb99daa2525701dfe2a25c0d7073f609a89e (patch) | |
tree | c14afb1208b4d008ac1329427f548e8c4b73803b /builtin.c | |
parent | dd48de068dcbdc3f96eb622baf2254b09301320f (diff) |
Prettyfy output of 'functions' builtin a tiny bit
darcs-hash:20070422185627-ac50b-99b7c27d06f5a6d5e7a7b66da864317bf1019fe2.gz
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 ); } } |