mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-11-27 04:00:48 +08:00
Attempt to fix #2125
This commit is contained in:
parent
fc44a3ae8d
commit
d05e84268b
@ -227,7 +227,9 @@ private static Substring onlyOnLastQuotedWord(Substring lastArg, Substring sugge
|
||||
return suggestion;
|
||||
}
|
||||
String substr = suggestion.getSubstring();
|
||||
int sp = substr.lastIndexOf(' ');
|
||||
// Ignore if suggestion ends with a " ", since that signals the end of
|
||||
// the completed command.
|
||||
int sp = substr.trim().lastIndexOf(' ');
|
||||
if (sp < 0) {
|
||||
return suggestion;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user