We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d32680f commit 96c36e6Copy full SHA for 96c36e6
1 file changed
krscript/src/main/java/com/omarea/krscript/model/ShellHandlerBase.java
@@ -101,8 +101,8 @@ protected void onReaderMsg(Object msg) {
101
// toast:[text...]
102
if (log.startsWith("toast:[")) {
103
int end = log.lastIndexOf("]");
104
- if (end > 6) {
105
- String text = log.substring(6, end);
+ if (end > 0) {
+ String text = log.substring("toast:[".length(), end);
106
onToast(text);
107
}
108
return;
0 commit comments