Mindustry
Mindustry copied to clipboard
ChatMode & history bugfix
Videos:
Before: before.zip After: after.zip
PS:
Github highlighted the file as changed entirely, so I'll just say that I changed:
Changed sendMessage()
method
- [X] I have read the contribution guidelines.
- [X] I have ensured that my code compiles, if applicable.
- [X] I have ensured that any new features in this PR function correctly in-game, if applicable.
It looks like you reformatted the file; you need to format it back to what it was before for me to review this properly.
It looks like you reformatted the file; you need to format it back to what it was before for me to review this properly.
Ready
May be use String.startsWith
. Sometime I like delete /t
manually, then substring would be wrong.
May be use
String.startsWith
. Sometime I like delete/t
manually, then substring would be wrong.
If you mean deleting "\t" (for example using backspace), then everything works fine Video.zip
May be use
String.startsWith
. Sometime I like delete/t
manually, then substring would be wrong.If you mean deleting "\t" (for example using backspace), then everything works fine Video.zip
Delete, then write something?
Delete, then write something? In the video, I press tab, thereby turn on "\t" mode, and then erase "\t", saving the text
In /t
mode, delete /t
manually, then write something
. You will get wrong saved text.(wrong substring)
In
/t
mode, delete/t
manually, then writesomething
. You will get wrong saved text.(wrong substring)
Thank you very much, while I was fixing this bug, I found another one in which pressing up and down created "\t", it seems now I have managed to make the story completely independent of the chat mod