1 files changed, 2 insertions, 0 deletions
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
@@ -205,6 +205,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);
auto args = text().mid(command_end + 1);
|