Skip to content

Commit

Permalink
Fixed tab complete includes disabled commands (#1680)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Apr 11, 2023
1 parent e8c0fb9 commit 85a2ba6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -72,7 +72,7 @@ public SuperiorCommand getCommand(String label) {
public List<SuperiorCommand> getSubCommands(boolean includeDisabled) {
SequentialListBuilder<SuperiorCommand> listBuilder = new SequentialListBuilder<>();

if (includeDisabled)
if (!includeDisabled)
listBuilder.filter(this::isCommandEnabled);

return listBuilder.build(this.subCommands.values());
Expand Down

0 comments on commit 85a2ba6

Please sign in to comment.