forked from qt-creator/qt-creator
Sort the completion items when searching for common prefixes.
Reviewed-by: Thorbjørn Lindeijer
This commit is contained in:
@@ -745,7 +745,7 @@ int CppCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
|
||||
}
|
||||
|
||||
if (m_completionOperator != T_EOF_SYMBOL)
|
||||
qSort(m_completions.begin(), m_completions.end(), completionItemLessThan);
|
||||
sortCompletion(m_completions);
|
||||
|
||||
// always remove duplicates
|
||||
m_completions = removeDuplicates(m_completions);
|
||||
|
||||
Reference in New Issue
Block a user