Commit c62b6a5f authored by Ivan Donchevskii's avatar Ivan Donchevskii

Clang: make correction whithout proposed items

Make . to -> correction even in case code assistant
has no items to propose.

Change-Id: Ie16d317c1a55f05883d3de5ba9bd475d315c59a9
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <>
Reviewed-by: David Schulz's avatarDavid Schulz <>
parent 19ea7059
......@@ -311,8 +311,11 @@ void CodeAssistantPrivate::displayProposal(IAssistProposal *newProposal, AssistR
const QString prefix = m_editorWidget->textAt(basePosition,
m_editorWidget->position() - basePosition);
if (!newProposal->hasItemsToPropose(prefix, reason))
if (!newProposal->hasItemsToPropose(prefix, reason)) {
if (newProposal->isCorrective(m_editorWidget))
if (destroyCurrentContext)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment