diff options
author | LordMZTE <lord@mzte.de> | 2021-03-28 14:49:34 +0200 |
---|---|---|
committer | LordMZTE <lord@mzte.de> | 2021-03-28 14:49:34 +0200 |
commit | ff2e7bb98934cc97047aad8e0fa28856a67df4eb (patch) | |
tree | bc357877f37bfd6f6266b9d705f7d6c1dea43f06 /src | |
parent | use QString as buf in rainbowifyer (diff) | |
download | nheko-ff2e7bb98934cc97047aad8e0fa28856a67df4eb.tar.xz |
commands now also work with newline after them
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/InputBar.cpp | 2 |
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); |