If no completions have been found, use file completion even if command specific completions have disabled file completions. Suggested by MArtin Bähr.

darcs-hash:20060827005740-ac50b-41c3bf2bb91bcfc0122c317bcc2aca2061cd019e.gz
This commit is contained in:
axel
2006-08-27 10:57:40 +10:00
parent 1c86395ed8
commit b15e8123ca

View File

@@ -2137,6 +2137,14 @@ void complete( const wchar_t *cmd,
int do_file;
do_file = complete_param( current_command, prev_token, current_token, comp );
/*
If we have found no command specific completions at
all, fall back to using file completions.
*/
if( !al_get_count( comp ) )
do_file = 1;
complete_param_expand( current_token, comp, do_file );
}
}