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 position = edit.textCursor().position() - 1;
|
||||
|
||||
if (text.length() == 0)
|
||||
if (text.length() == 0 || position == -1)
|
||||
{
|
||||
this->hideCompletionPopup();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user