From ff23bf6f0cf38d2372733a695df8a70e341452f8 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 27 Mar 2012 19:22:33 -0700 Subject: [PATCH] Fix for bug where fish would not autosuggest certain executables --- complete.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/complete.cpp b/complete.cpp index 52caf397e..499d5bc9f 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 ); + } } } }