Only suggest "all" autocomplete when server has multiple services
This commit is contained in:
@@ -52,7 +52,11 @@ namespace dropshell
|
|||||||
{
|
{
|
||||||
std_autocomplete(ctx);
|
std_autocomplete(ctx);
|
||||||
if (ctx.args.size() == 1)
|
if (ctx.args.size() == 1)
|
||||||
rawout << "all" << std::endl;
|
{
|
||||||
|
std::vector<LocalServiceInfo> services = get_server_services_info(ctx.args[0]);
|
||||||
|
if (services.size() > 1)
|
||||||
|
rawout << "all" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user