mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 16:57:47 +08:00
Prettyfy output of 'functions' builtin a tiny bit
darcs-hash:20070422185627-ac50b-99b7c27d06f5a6d5e7a7b66da864317bf1019fe2.gz
This commit is contained in:
parent
dd48de068d
commit
003dfb99da
10
builtin.c
10
builtin.c
|
@ -849,12 +849,7 @@ static void functions_def( wchar_t *name, string_buffer_t *out )
|
||||||
|
|
||||||
al_destroy( &ev );
|
al_destroy( &ev );
|
||||||
|
|
||||||
sb_append2( out,
|
sb_printf( out, L"\n\t%ls\nend\n", def );
|
||||||
L"\n\t",
|
|
||||||
def,
|
|
||||||
L"\nend\n\n",
|
|
||||||
(void *)0);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1065,6 +1060,9 @@ static int builtin_functions( wchar_t **argv )
|
||||||
{
|
{
|
||||||
if( !query )
|
if( !query )
|
||||||
{
|
{
|
||||||
|
if( i != woptind)
|
||||||
|
sb_append( sb_out, L"\n" );
|
||||||
|
|
||||||
functions_def( argv[i], sb_out );
|
functions_def( argv[i], sb_out );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user