mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Restore directories' tab completion without slash in command.
This is needed for implicit cd when ending command with `/`.
This commit is contained in:
parent
6c82e7acda
commit
a62ebc9a69
1 changed files with 5 additions and 9 deletions
|
@ -1141,9 +1141,6 @@ void completer_t::complete_cmd(const wcstring &str_cmd, bool use_function, bool
|
||||||
if (cdpath.missing_or_empty())
|
if (cdpath.missing_or_empty())
|
||||||
cdpath = L".";
|
cdpath = L".";
|
||||||
|
|
||||||
if (str_cmd.find(L'/') != wcstring::npos || str_cmd.at(0) == L'~')
|
|
||||||
{
|
|
||||||
|
|
||||||
if (use_command)
|
if (use_command)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1155,8 +1152,7 @@ void completer_t::complete_cmd(const wcstring &str_cmd, bool use_function, bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if (str_cmd.find(L'/') == wcstring::npos && str_cmd.at(0) != L'~')
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (use_command)
|
if (use_command)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue