Skip to content

Commit

Permalink
More tab completion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lscgh committed Feb 6, 2024
1 parent 84c26f5 commit 2eeedd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
}

ArrayList<String> filteredCompletions = new ArrayList<String>();
StringUtil.copyPartialMatches(argList.size() > 0 ? argList.get(argList.size() - 1) : "", completions, filteredCompletions);
StringUtil.copyPartialMatches(args[args.length - 1], completions, filteredCompletions);

return filteredCompletions;
}
Expand Down

0 comments on commit 2eeedd8

Please sign in to comment.