src/Palete/Roo.vala
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 11:25:56 +0000 (19:25 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 11:25:56 +0000 (19:25 +0800)
src/Palete/Roo.vala

index 1e12565..22fea54 100644 (file)
@@ -243,7 +243,7 @@ namespace Palete {
                                // offer up this / Roo / javascript keywords... / look for var string = .. in the code..
                                for(var i = 0; i <  JsRender.Lang.match_strings.size ; i++) {
                                        var str = JsRender.Lang.match_strings.get(i);
-                                       if (str.index_of(complete_string,0) == 0 && complete_string != str) { // should we ignore exact matches... ???
+                                       if (complete_string != str && str.index_of(complete_string,0) == 0 ) { // should we ignore exact matches... ???
                                                ret.append(new SourceCompletionItem (str, str, null, "javascript : " + str));
                                        }
                                }