mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-20 07:41:12 -03:00
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
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user