On Tue, 31 Jul 2001, Nick Foster wrote: > The patch that I downloaded did not include anything to do with > suggest.cc. I have been looking at the file suggest.cc but as I don't > really know c++ I have not really been able to work much out. Oops. Sorry about that. I though I included it. The attached patch will should really solve the problem. You need to apply it in the lib/ directory. Once again sorry for the trouble. --- Kevin Atkinson kevina at users sourceforge net http://www.ibiblio.org/kevina/
Index: lib/suggest.cc =================================================================== RCS file: /cvsroot/aspell/aspell/lib/suggest.cc,v retrieving revision 1.5.8.14 retrieving revision 1.5.8.15 diff -u -b -w -r1.5.8.14 -r1.5.8.15 --- lib/suggest.cc 2001/03/23 04:28:14 1.5.8.14 +++ lib/suggest.cc 2001/07/03 01:12:03 1.5.8.15 @@ -527,13 +527,16 @@ if (word_score < LARGE_NUM) { i->score = weighted_average(i->soundslike_score, word_score); - ++i; scored_near_misses.splice_into(near_misses,prev,i); + i = prev; // Yes this is right due to the slice + ++i; + } else { prev = i; ++i; + } } @@ -596,9 +599,11 @@ if (word_score < LARGE_NUM) { i->score = weighted_average(i->soundslike_score, word_score); - ++i; scored_near_misses.splice_into(near_misses,prev,i); + i = prev; // Yes this is right due to the slice + ++i; + } else { prev = i; @@ -607,8 +612,8 @@ } } - scored_near_misses.pop_front(); scored_near_misses.sort(); + scored_near_misses.pop_front(); } } else { // not use_soundslike