Buffer::nextWord(): simplify a bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28964 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-03-28 19:08:38 +00:00
parent 1ec0b390f5
commit 966ea2752e

View File

@ -3067,13 +3067,10 @@ bool Buffer::nextWord(DocIterator & from, DocIterator & to,
ignoreword = true;
}
} else { // !isLetter(cur)
if (inword)
if (!word.empty() && !ignoreword) {
return true;
}
inword = false;
if (inword && !word.empty() && !ignoreword)
return true;
inword = false;
}
to.forwardPos();
}