From b5f41501e46d31c40223e05baad4f53751e1efb5 Mon Sep 17 00:00:00 2001 From: wea_ondara Date: Sun, 11 Oct 2020 13:28:47 +0200 Subject: [PATCH] fix tabcomplete for brushes and possible many other commands --- .../worldedit/extension/platform/PlatformCommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index 2bb552c74..c221acb6b 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -850,7 +850,7 @@ public final class PlatformCommandManager { event.setSuggestions(suggestions.stream() .map(suggestion -> { - int noSlashLength = arguments.length() - 1; + int noSlashLength = arguments.length(); Substring original = suggestion.getReplacedArgument() == split.size() ? Substring.from(arguments, noSlashLength, noSlashLength) : split.get(suggestion.getReplacedArgument());