mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Fix to avoid suggesting files for empty tokens
This commit is contained in:
parent
fde9842a8e
commit
dd317709f8
1 changed files with 5 additions and 1 deletions
|
@ -1971,6 +1971,10 @@ void complete(const wcstring &cmd, std::vector<completion_t> &comps, complete_ty
|
|||
if (commands_to_load != NULL && completer.has_commands_to_load())
|
||||
do_file = false;
|
||||
|
||||
/* And if we're autosuggesting, and the token is empty, don't do file suggestions */
|
||||
if (type == COMPLETE_AUTOSUGGEST && current_token_unescape.empty())
|
||||
do_file = false;
|
||||
|
||||
/*
|
||||
This function wants the unescaped string
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue