mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
some fixes for SplitInput
This commit is contained in:
parent
758fdc28ee
commit
f584503673
1 changed files with 6 additions and 2 deletions
|
@ -485,7 +485,10 @@ void SplitInput::updateColonMenu()
|
||||||
}
|
}
|
||||||
else if (text[i] == ':')
|
else if (text[i] == ':')
|
||||||
{
|
{
|
||||||
this->showColonMenu(text.mid(i, position - i).mid(1));
|
if (i == 0 || text[i - 1].isSpace())
|
||||||
|
this->showColonMenu(text.mid(i, position - i).mid(1));
|
||||||
|
else
|
||||||
|
this->hideColonMenu();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -526,9 +529,10 @@ void SplitInput::hideColonMenu()
|
||||||
popup->hide();
|
popup->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SplitInput::insertColonText(const QString &input)
|
void SplitInput::insertColonText(const QString &input_)
|
||||||
{
|
{
|
||||||
auto &edit = *this->ui_.textEdit;
|
auto &edit = *this->ui_.textEdit;
|
||||||
|
auto input = input_ + ' ';
|
||||||
|
|
||||||
auto text = edit.toPlainText();
|
auto text = edit.toPlainText();
|
||||||
auto position = edit.textCursor().position();
|
auto position = edit.textCursor().position();
|
||||||
|
|
Loading…
Reference in a new issue