diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 69d129ce..2e311169 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -204,6 +204,8 @@ InputBar::send() if (text().startsWith('/')) { int command_end = text().indexOf(' '); + if (command_end == -1) + command_end = text().indexOf('\n'); if (command_end == -1) command_end = text().size(); auto name = text().mid(1, command_end - 1);