From ff2e7bb98934cc97047aad8e0fa28856a67df4eb Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sun, 28 Mar 2021 14:49:34 +0200 Subject: [PATCH] commands now also work with newline after them --- src/timeline/InputBar.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);