mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-12 07:57:22 +00:00
Prettyfy output of 'functions' builtin a tiny bit
darcs-hash:20070422185627-ac50b-99b7c27d06f5a6d5e7a7b66da864317bf1019fe2.gz
This commit is contained in:
parent
dd48de068d
commit
003dfb99da
1 changed files with 4 additions and 6 deletions
10
builtin.c
10
builtin.c
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue