]> gitweb.factorcode.org Git - factor.git/commitdiff
latest SmokedOut, hopefully starting work again
authorSlava Pestov <slava@factorcode.org>
Sun, 19 Sep 2004 01:47:12 +0000 (01:47 +0000)
committerSlava Pestov <slava@factorcode.org>
Sun, 19 Sep 2004 01:47:12 +0000 (01:47 +0000)
factor/jedit/FactorPlugin.java

index 6f47c65905f141a372712b08d14dd21d203bca7a..1b95031fa36e3ed43369a1c0ce65ba3b4f999eb1 100644 (file)
@@ -178,16 +178,18 @@ public class FactorPlugin extends EditPlugin
                while(words != null)
                {
                        FactorWord w = (FactorWord)words.car;
-
-                       if(anywhere)
+                       if(w.name != null)
                        {
-                               if(w.name.indexOf(word) != -1)
-                                       completions.add(w);
-                       }
-                       else
-                       {
-                               if(w.name.startsWith(word))
-                                       completions.add(w);
+                               if(anywhere)
+                               {
+                                       if(w.name.indexOf(word) != -1)
+                                               completions.add(w);
+                               }
+                               else
+                               {
+                                       if(w.name.startsWith(word))
+                                               completions.add(w);
+                               }
                        }
 
                        words = words.next();