Commit 34c1c10c authored by Roberto Raggi's avatar Roberto Raggi

Get rid of the automatic completion box when its only entry is the symbol under cursor.

parent 29c304bd
......@@ -1726,9 +1726,8 @@ void CppCodeCompletion::completions(QList<TextEditor::CompletionItem> *completio
}
}
if (completions->size() == 1) {
if (key == completions->first().text)
completions->clear();
if (m_automaticCompletion && completions->size() == 1 && key == completions->first().text) {
completions->clear();
}
}
......
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