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