Commit 0e0841da authored by Leandro Melo's avatar Leandro Melo
Browse files

Snippets: Show snippets after "corresponding" keywords.

In some cases snippets have a description. Due to the sorting this
already places them after keywords. So this is just to be consistent
for all cases.
parent 769b2103
......@@ -1125,8 +1125,8 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
foreach (ClassOrNamespace *b, usingBindings)
completeNamespace(b);
addSnippets();
addKeywords();
addSnippets();
qStableSort(m_completions.begin(), m_completions.end(), completionItemLessThan);
addMacros(QLatin1String("<configuration>"), context.snapshot());
......
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