diff options
-rw-r--r-- | complete.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/complete.cpp b/complete.cpp index 52caf397..499d5bc9 100644 --- a/complete.cpp +++ b/complete.cpp @@ -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 ); + } } } } |