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

index 279e342..df0a9fd 100644 (file)
@@ -36,7 +36,7 @@ namespace Palete {
 
                public List<SourceCompletionItem>? fetchMatches(SourceCompletionContext context, out bool has_matches)
                {
-                   var has_matches = false;
+                    has_matches = false;
 
                    if (this.windowstate == null) {
                            this.windowstate = this.editor.window.windowstate;
@@ -86,6 +86,7 @@ namespace Palete {
        
                public void populate (SourceCompletionContext context)
                {
+                       bool has_matches = false;
                        this.fetchMatches(context, out has_matches);
                        if (!has_matches) {
                                    return;