The title says it all (almost). Here is a simple patch against HEAD. Please test.
JMarc
Index: src/frontends/controllers/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ChangeLog,v retrieving revision 1.499 diff -u -p -r1.499 ChangeLog --- src/frontends/controllers/ChangeLog 5 Oct 2005 12:00:03 -0000 1.499 +++ src/frontends/controllers/ChangeLog 5 Oct 2005 13:11:25 -0000 @@ -1,3 +1,8 @@ +2005-10-05 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * ControlSpellchecker.C (nextWord): do not return empty word + unless at the end of the document (bug 2062) + 2005-10-03 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * ControlSpellchecker.C (check): make sure that word at cursor Index: src/frontends/controllers/ControlSpellchecker.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlSpellchecker.C,v retrieving revision 1.86 diff -u -p -r1.86 ControlSpellchecker.C --- src/frontends/controllers/ControlSpellchecker.C 5 Oct 2005 12:00:03 -0000 1.86 +++ src/frontends/controllers/ControlSpellchecker.C 5 Oct 2005 13:11:25 -0000 @@ -166,7 +166,7 @@ WordLangTuple nextWord(DocIterator & cur } } else { // !isLetter(cur) if (inword) - if (!ignoreword) + if (!word.empty() && !ignoreword) return WordLangTuple(word, lang_code); else inword = false;