diff --git a/src/plugins/texteditor/codeassist/genericproposalmodel.cpp b/src/plugins/texteditor/codeassist/genericproposalmodel.cpp index 30d5a432019..88b7681ae09 100644 --- a/src/plugins/texteditor/codeassist/genericproposalmodel.cpp +++ b/src/plugins/texteditor/codeassist/genericproposalmodel.cpp @@ -217,8 +217,7 @@ bool GenericProposalModel::isPerfectMatch(const QString &prefix) const if (proposalItem(i)->isKeyword()) return true; - if (!hasFullMatch) - hasFullMatch = true; + hasFullMatch = true; } }