summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLordMZTE <lord@mzte.de>2021-03-28 14:49:34 +0200
committerLordMZTE <lord@mzte.de>2021-03-28 14:49:34 +0200
commitff2e7bb98934cc97047aad8e0fa28856a67df4eb (patch)
treebc357877f37bfd6f6266b9d705f7d6c1dea43f06 /src
parentuse QString as buf in rainbowifyer (diff)
downloadnheko-ff2e7bb98934cc97047aad8e0fa28856a67df4eb.tar.xz
commands now also work with newline after them
Diffstat (limited to 'src')
-rw-r--r--src/timeline/InputBar.cpp2
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);