mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix for bug where fish would not autosuggest certain executables
This commit is contained in:
parent
00d3e18780
commit
ff23bf6f0c
1 changed files with 4 additions and 2 deletions
|
@ -993,12 +993,14 @@ 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 )
|
||||
{
|
||||
this->complete_cmd_desc( str );
|
||||
if (wants_description) {
|
||||
this->complete_cmd_desc( str );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue