mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-11-27 04:00:48 +08:00
Apply review suggestion
This commit is contained in:
parent
d05e84268b
commit
8a3df24a37
@ -227,8 +227,7 @@ private static Substring onlyOnLastQuotedWord(Substring lastArg, Substring sugge
|
||||
return suggestion;
|
||||
}
|
||||
String substr = suggestion.getSubstring();
|
||||
// Ignore if suggestion ends with a " ", since that signals the end of
|
||||
// the completed command.
|
||||
// Check if there is a space inside the substring, and suggest starting from there instead.
|
||||
int sp = substr.trim().lastIndexOf(' ');
|
||||
if (sp < 0) {
|
||||
return suggestion;
|
||||
|
Loading…
Reference in New Issue
Block a user