Fix a bug where tabbing too early would break any future tab completions
Fixes #1107
This commit is contained in:
@@ -98,7 +98,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
|
|||||||
QString currentCompletionPrefix = this->textUnderCursor();
|
QString currentCompletionPrefix = this->textUnderCursor();
|
||||||
|
|
||||||
// check if there is something to complete
|
// check if there is something to complete
|
||||||
if (!currentCompletionPrefix.size())
|
if (currentCompletionPrefix.size() <= 1)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user