Fix a bug where tabbing too early would break any future tab completions

Fixes #1107
This commit is contained in:
Rasmus Karlsson 2019-06-22 13:16:16 +02:00
parent 64dc7f5d73
commit 9cb5e3abb3

View file

@ -98,7 +98,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
QString currentCompletionPrefix = this->textUnderCursor();
// check if there is something to complete
if (!currentCompletionPrefix.size())
if (currentCompletionPrefix.size() <= 1)
{
return;
}