mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix typo in user message, remove a few warnings, minor indentation edits
darcs-hash:20070109025356-ac50b-328e42b8898bbc9b40b4841a032ae7871dba9e13.gz
This commit is contained in:
parent
d8b5cc6717
commit
602eac89c4
3 changed files with 10 additions and 10 deletions
16
builtin.c
16
builtin.c
|
@ -219,19 +219,19 @@ wchar_t *builtin_help_get( const wchar_t *name )
|
||||||
sb_printf( &cmd, L"__fish_print_help %ls", name_esc );
|
sb_printf( &cmd, L"__fish_print_help %ls", name_esc );
|
||||||
|
|
||||||
|
|
||||||
exec_subshell( (wchar_t *)cmd.buff, &lst );
|
if( exec_subshell( (wchar_t *)cmd.buff, &lst ) >= 0 )
|
||||||
|
{
|
||||||
for( i=0; i<al_get_count( &lst); i++ )
|
for( i=0; i<al_get_count( &lst); i++ )
|
||||||
{
|
{
|
||||||
sb_append( out, (wchar_t *)al_get( &lst, i ) );
|
sb_append( out, (wchar_t *)al_get( &lst, i ) );
|
||||||
sb_append( out, L"\n" );
|
sb_append( out, L"\n" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
al_destroy( &lst );
|
al_destroy( &lst );
|
||||||
sb_destroy( &cmd );
|
sb_destroy( &cmd );
|
||||||
free( name_esc );
|
free( name_esc );
|
||||||
|
|
||||||
|
|
||||||
return (wchar_t *)out->buff;
|
return (wchar_t *)out->buff;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
2
input.c
2
input.c
|
@ -1678,7 +1678,7 @@ wint_t input_readch()
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
CHECK_BLOCK();
|
CHECK_BLOCK( R_NULL );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Clear the interrupted flag
|
Clear the interrupted flag
|
||||||
|
|
2
parser.c
2
parser.c
|
@ -130,7 +130,7 @@ The fish parser. Contains functions for parsing and evaluating code.
|
||||||
/**
|
/**
|
||||||
Error when using return builtin outside of function definition
|
Error when using return builtin outside of function definition
|
||||||
*/
|
*/
|
||||||
#define INVALID_RETURN_ERR_MSG _( L"'return' command command outside of function definition" )
|
#define INVALID_RETURN_ERR_MSG _( L"'return' builtin command outside of function definition" )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Error when using else builtin outside of if block
|
Error when using else builtin outside of if block
|
||||||
|
|
Loading…
Reference in a new issue