aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-03-18 08:56:11 +1000
committerGravatar axel <axel@liljencrantz.se>2007-03-18 08:56:11 +1000
commit3e1b0e587e90ea579eae71ec8115aeec1504757f (patch)
treeaa8b6f332a61e977fd57e31a167566feaa5bc82f /complete.c
parent2aea1d5a84ec696f0a013a42a2c50ca1476a7ceb (diff)
Fix performance bug in command description lookup - it was performed once for every element in PATH. Thanks to Tassilo Horn for the bug report.
darcs-hash:20070317225611-ac50b-5df5227ddd88747781c981ed34a80844391573d1.gz
Diffstat (limited to 'complete.c')
-rw-r--r--complete.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/complete.c b/complete.c
index 8f89c8ed..81c79523 100644
--- a/complete.c
+++ b/complete.c
@@ -1128,12 +1128,11 @@ static void complete_cmd( const wchar_t *cmd,
ACCEPT_INCOMPLETE |
EXECUTABLES_ONLY ) != EXPAND_ERROR )
{
- complete_cmd_desc( cmd, comp );
}
}
free( path_cpy );
-
+ complete_cmd_desc( cmd, comp );
}
}