commands now also work with newline after them

pull/535/head
LordMZTE 4 years ago
parent e7f20eeae0
commit ff2e7bb989
  1. 2
      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);

Loading…
Cancel
Save