Skip to content
Snippets Groups Projects
Commit a810af61 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check for empty words

parent 84b314bf
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,9 @@ int DuiCodeCompletion::startCompletion(TextEditor::ITextEditable *editor) ...@@ -50,6 +50,9 @@ int DuiCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
m_completions.clear(); m_completions.clear();
foreach (const QString &word, edit->words()) { foreach (const QString &word, edit->words()) {
if (word.isEmpty())
continue;
TextEditor::CompletionItem item(this); TextEditor::CompletionItem item(this);
item.m_text = word; item.m_text = word;
m_completions.append(item); m_completions.append(item);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment