mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 23:47:25 +00:00
parent
a37d4d809e
commit
6bee85fefa
1 changed files with 7 additions and 5 deletions
|
@ -1908,13 +1908,15 @@ expand_error_t expand_string(const wcstring &input, std::vector<completion_t> *o
|
|||
output_storage.clear();
|
||||
}
|
||||
|
||||
if (total_result != EXPAND_ERROR)
|
||||
{
|
||||
/* Hack to un-expand tildes (see #647) */
|
||||
if (!(flags & EXPAND_SKIP_HOME_DIRECTORIES))
|
||||
{
|
||||
unexpand_tildes(input, &completions);
|
||||
}
|
||||
|
||||
out_completions->insert(out_completions->end(), completions.begin(), completions.end());
|
||||
}
|
||||
return total_result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue