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

index 55f7499..279e342 100644 (file)
@@ -29,13 +29,14 @@ namespace Palete {
 
                public bool match (SourceCompletionContext context)
                {
+                       bool has_matches = false;
                        this.fetchMatches(context, out has_matches);
                        return has_matches;
                }
 
                public List<SourceCompletionItem>? fetchMatches(SourceCompletionContext context, out bool has_matches)
                {
-                   has_matches = false;
+                   var has_matches = false;
 
                    if (this.windowstate == null) {
                            this.windowstate = this.editor.window.windowstate;