diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-27 19:22:33 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-27 19:22:33 -0700 |
commit | ff23bf6f0cf38d2372733a695df8a70e341452f8 (patch) | |
tree | fbcb72f1915f9750392b4a8023a567b887f323fb /complete.cpp | |
parent | 00d3e18780e314dc457601e730e0a5a1f95f88f3 (diff) |
Fix for bug where fish would not autosuggest certain executables
Diffstat (limited to 'complete.cpp')
-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 ); + } } } } |