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
|
// find next word
|
||||||
int idx = input.lastIndexOf(' ');
|
int idx = input.lastIndexOf(' ') + 1;
|
||||||
final String replacement;
|
final String replacement = input.substring(0, idx);
|
||||||
if (idx != -1)
|
|
||||||
{
|
|
||||||
replacement = input.substring(0, idx);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
replacement = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
clientThread.invoke(() -> applyText(inputTye, replacement));
|
clientThread.invoke(() -> applyText(inputTye, replacement));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user