mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-02-23 13:30:12 +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;
|
return suggestion;
|
||||||
}
|
}
|
||||||
String substr = suggestion.getSubstring();
|
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) {
|
if (sp < 0) {
|
||||||
return suggestion;
|
return suggestion;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user