From 820da6e7f7b5a447e612db433782a9cfe3264073 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 23 Jan 2006 21:42:29 +1000 Subject: [PATCH] Minor touchups of the complete.c file darcs-hash:20060123114229-ac50b-b1f0ced50e81afd28807b6c8db3ab59f3e550130.gz --- complete.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/complete.c b/complete.c index 315b46985..fd367cae7 100644 --- a/complete.c +++ b/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; /*