Commit df2b4de4 authored by Kevin Funk's avatar Kevin Funk

Fix crash in case m_text.size() == 0

I was editing a simple JS file, see below.

.pragma library

var highlightColor = "blue";
var activeHighlightColor = "lightsteelblue";

v<cursor here>

Denis, please check
parent b71dd842
......@@ -59,7 +59,7 @@ QList<CompletionTreeItemPointer> CodeCompletionContext::completionItems(bool& ab
QList<CompletionTreeItemPointer> items;
if (abort) {
if (abort || m_text.isEmpty()) {
return items;
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