prevent completion of command arguments if command contains colon

This commit is contained in:
Sen 2025-06-04 13:36:50 +02:00
parent 468e7703bd
commit 9b0d7bcb72
Signed by: sen
GPG key ID: 3AC50A6F47D1B722

View file

@ -423,6 +423,9 @@ public class ProxyHandler implements Handler {
System.arraycopy(args, 1, argv, 0, argv.length);
list = this.getCompletions(argv);
}
else if(this.completion.split(" ", -1)[0].indexOf(':') != -1) {
list = Lists.newArrayList();
}
}
else {
String[] args = this.completion.split(" ", -1);