Skip to content

Commit 8a3df24

Browse files
committed
Apply review suggestion
1 parent d05e842 commit 8a3df24

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • worldedit-core/src/main/java/com/sk89q/worldedit/internal/command

worldedit-core/src/main/java/com/sk89q/worldedit/internal/command/CommandUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ private static Substring onlyOnLastQuotedWord(Substring lastArg, Substring sugge
227227
return suggestion;
228228
}
229229
String substr = suggestion.getSubstring();
230-
// Ignore if suggestion ends with a " ", since that signals the end of
231-
// the completed command.
230+
// Check if there is a space inside the substring, and suggest starting from there instead.
232231
int sp = substr.trim().lastIndexOf(' ');
233232
if (sp < 0) {
234233
return suggestion;

0 commit comments

Comments
 (0)