mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Minor touchups of the complete.c file
darcs-hash:20060123114229-ac50b-b1f0ced50e81afd28807b6c8db3ab59f3e550130.gz
This commit is contained in:
parent
3466f55ea0
commit
820da6e7f7
1 changed files with 2 additions and 12 deletions
14
complete.c
14
complete.c
|
@ -1550,13 +1550,6 @@ void complete_load( wchar_t *cmd,
|
|||
wchar_t *esc = expand_escape( (wchar_t *)path.buff, 1 );
|
||||
wchar_t *src_cmd = wcsdupcat( L". ", esc );
|
||||
|
||||
/* if( tm )
|
||||
debug( 0, L"Reload %ls completions, old time was %d, new time is %d",
|
||||
cmd,
|
||||
tm?*tm:-1,
|
||||
buf.st_mtime);
|
||||
*/
|
||||
|
||||
if( !tm )
|
||||
{
|
||||
tm = malloc(sizeof(time_t));
|
||||
|
@ -1569,7 +1562,6 @@ void complete_load( wchar_t *cmd,
|
|||
intern( cmd ),
|
||||
tm );
|
||||
|
||||
|
||||
free( esc );
|
||||
|
||||
complete_remove( cmd, COMMAND, 0, 0 );
|
||||
|
@ -1592,8 +1584,6 @@ void complete_load( wchar_t *cmd,
|
|||
*/
|
||||
if( !tm )
|
||||
{
|
||||
// debug( 0, L"Insert null timestamp for command %ls", cmd );
|
||||
|
||||
tm = malloc(sizeof(time_t));
|
||||
if( !tm )
|
||||
die_mem();
|
||||
|
@ -1646,7 +1636,7 @@ static int complete_param( wchar_t *cmd_orig,
|
|||
if( str[0] == L'-' )
|
||||
{
|
||||
/* Check if we are entering a combined option and argument
|
||||
* (like --color=auto or -I/usr/include) */
|
||||
(like --color=auto or -I/usr/include) */
|
||||
for( o = i->first_option; o; o=o->next )
|
||||
{
|
||||
wchar_t *arg;
|
||||
|
@ -1664,7 +1654,7 @@ static int complete_param( wchar_t *cmd_orig,
|
|||
else if( popt[0] == L'-' )
|
||||
{
|
||||
/* Check if the previous option has any specified
|
||||
* arguments to match against */
|
||||
arguments to match against */
|
||||
int found_old = 0;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue