Fix for bug where fish would not autosuggest certain executables

This commit is contained in:
ridiculousfish 2012-03-27 19:22:33 -07:00
parent 00d3e18780
commit ff23bf6f0c

View file

@ -993,15 +993,17 @@ void completer_t::complete_cmd( const wcstring &str, bool use_function, bool use
if( (wcschr( cmd, L'/') != 0) || (cmd[0] == L'~' ) )
{
if( use_command && wants_description )
if( use_command )
{
if( expand_string(str, this->completions, ACCEPT_INCOMPLETE | EXECUTABLES_ONLY | this->expand_flags() ) != EXPAND_ERROR )
{
if (wants_description) {
this->complete_cmd_desc( str );
}
}
}
}
else
{
if( use_command )