mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-22 07:31:17 -03:00
Switch autosuggest_suggest_special to returning a completion_t
This commit is contained in:
@@ -1482,10 +1482,10 @@ struct autosuggestion_context_t
|
||||
return 0;
|
||||
|
||||
/* Try handling a special command like cd */
|
||||
wcstring special_suggestion;
|
||||
completion_t special_suggestion(L"");
|
||||
if (autosuggest_suggest_special(search_string, working_directory, &special_suggestion))
|
||||
{
|
||||
this->autosuggestion = special_suggestion;
|
||||
this->autosuggestion = special_suggestion.completion;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user