latest SmokedOut, hopefully starting work again

cvs
Slava Pestov 2004-09-19 01:47:12 +00:00
parent f7fe2598dd
commit 8e20bee820
1 changed files with 11 additions and 9 deletions

View File

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