mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Hide completion popup when cursor is at first position (#2929)
Prevents user autocompletion menu from appearing in unwanted scenarios
This commit is contained in:
parent
07231e57c9
commit
e1895de7f3
|
@ -480,7 +480,7 @@ void SplitInput::updateCompletionPopup()
|
||||||
auto text = edit.toPlainText();
|
auto text = edit.toPlainText();
|
||||||
auto position = edit.textCursor().position() - 1;
|
auto position = edit.textCursor().position() - 1;
|
||||||
|
|
||||||
if (text.length() == 0)
|
if (text.length() == 0 || position == -1)
|
||||||
{
|
{
|
||||||
this->hideCompletionPopup();
|
this->hideCompletionPopup();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue