Hide completion popup when cursor is at first position (#2929)
Prevents user autocompletion menu from appearing in unwanted scenarios
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user