mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Drop unneeded generic descriptions for completion of functions and builtins. Add description for count.
darcs-hash:20070127020752-ac50b-62dba47967cac04cd242894bfaa03116461883f3.gz
This commit is contained in:
parent
8cf46bdb5c
commit
85241817f8
2 changed files with 3 additions and 15 deletions
|
@ -3127,7 +3127,7 @@ const static builtin_data_t builtin_data[]=
|
||||||
displays the help for count, but 'count (echo -h)' does not.
|
displays the help for count, but 'count (echo -h)' does not.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
L"count", &builtin_generic, 0
|
L"count", &builtin_generic, N_( L"Count the number of arguments" )
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
|
|
16
complete.c
16
complete.c
|
@ -115,15 +115,6 @@ These functions are used for storing and retrieving tab-completion data, as well
|
||||||
*/
|
*/
|
||||||
#define COMPLETE_DIRECTORY_DESC _( L"Directory" )
|
#define COMPLETE_DIRECTORY_DESC _( L"Directory" )
|
||||||
|
|
||||||
/**
|
|
||||||
Generic description for functions
|
|
||||||
*/
|
|
||||||
#define COMPLETE_FUNCTION_DESC _( L"Function" )
|
|
||||||
/**
|
|
||||||
Generic description for builtin commands
|
|
||||||
*/
|
|
||||||
#define COMPLETE_BUILTIN_DESC _( L"Builtin" )
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The command to run to get a description from a file suffix
|
The command to run to get a description from a file suffix
|
||||||
*/
|
*/
|
||||||
|
@ -1408,19 +1399,16 @@ static void complete_cmd( const wchar_t *cmd,
|
||||||
|
|
||||||
if( use_function )
|
if( use_function )
|
||||||
{
|
{
|
||||||
|
|
||||||
function_get_names( &possible_comp, cmd[0] == L'_' );
|
function_get_names( &possible_comp, cmd[0] == L'_' );
|
||||||
copy_strings_with_prefix( comp, cmd, COMPLETE_FUNCTION_DESC, &complete_function_desc, &possible_comp );
|
copy_strings_with_prefix( comp, cmd, 0, &complete_function_desc, &possible_comp );
|
||||||
}
|
}
|
||||||
|
|
||||||
al_truncate( &possible_comp, 0 );
|
al_truncate( &possible_comp, 0 );
|
||||||
|
|
||||||
if( use_builtin )
|
if( use_builtin )
|
||||||
{
|
{
|
||||||
|
|
||||||
builtin_get_names( &possible_comp );
|
builtin_get_names( &possible_comp );
|
||||||
copy_strings_with_prefix( comp, cmd, COMPLETE_BUILTIN_DESC, &builtin_get_desc, &possible_comp );
|
copy_strings_with_prefix( comp, cmd, 0, &builtin_get_desc, &possible_comp );
|
||||||
|
|
||||||
}
|
}
|
||||||
al_destroy( &possible_comp );
|
al_destroy( &possible_comp );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue