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)
{
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();