chatcommands: Don't remove spaces before cleared word (#11017)
This commit is contained in:
@@ -72,16 +72,8 @@ public class ChatKeyboardListener implements KeyListener
|
||||
}
|
||||
|
||||
// find next word
|
||||
int idx = input.lastIndexOf(' ');
|
||||
final String replacement;
|
||||
if (idx != -1)
|
||||
{
|
||||
replacement = input.substring(0, idx);
|
||||
}
|
||||
else
|
||||
{
|
||||
replacement = "";
|
||||
}
|
||||
int idx = input.lastIndexOf(' ') + 1;
|
||||
final String replacement = input.substring(0, idx);
|
||||
|
||||
clientThread.invoke(() -> applyText(inputTye, replacement));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user