diff options
author | axel <axel@liljencrantz.se> | 2006-01-23 21:42:29 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-01-23 21:42:29 +1000 |
commit | 820da6e7f7b5a447e612db433782a9cfe3264073 (patch) | |
tree | c08d1b7968f40a2e9414f1678d385ac0100093cb /complete.c | |
parent | 3466f55ea0d1884b5f46b897b9aa1c0b49ca539d (diff) |
Minor touchups of the complete.c file
darcs-hash:20060123114229-ac50b-b1f0ced50e81afd28807b6c8db3ab59f3e550130.gz
Diffstat (limited to 'complete.c')
-rw-r--r-- | complete.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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; /* |