Commit a810af61 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check for empty words

parent 84b314bf
......@@ -50,6 +50,9 @@ int DuiCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
m_completions.clear();
foreach (const QString &word, edit->words()) {
if (word.isEmpty())
continue;
TextEditor::CompletionItem item(this);
item.m_text = word;
m_completions.append(item);
......
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