src/Palete/CompletionProvider.vala
authorAlan Knowles <alan@roojs.com>
Mon, 21 Dec 2015 09:35:10 +0000 (17:35 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 21 Dec 2015 09:35:10 +0000 (17:35 +0800)
src/Palete/CompletionProvider.vala

index df0a9fd..c35d066 100644 (file)
@@ -87,9 +87,10 @@ namespace Palete {
                public void populate (SourceCompletionContext context)
                {
                        bool has_matches = false;
-                       this.fetchMatches(context, out has_matches);
+                       var filtered_proposals = this.fetchMatches(context, out has_matches);
                        if (!has_matches) {
-                                   return;
+                           context.add_proposals (this, null, true);
+                           return;
                        }
                         
                        context.add_proposals (this, filtered_proposals, true);