From 9cb5e3abb392d646967eef035fd6f4df5ef476d0 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 22 Jun 2019 13:16:16 +0200 Subject: [PATCH] Fix a bug where tabbing too early would break any future tab completions Fixes #1107 --- src/widgets/helper/ResizingTextEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/helper/ResizingTextEdit.cpp b/src/widgets/helper/ResizingTextEdit.cpp index eda2b2c97..2df772d03 100644 --- a/src/widgets/helper/ResizingTextEdit.cpp +++ b/src/widgets/helper/ResizingTextEdit.cpp @@ -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; }