stupid off-by-one error in r25373

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25375 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-06-24 09:57:38 +00:00
parent 71860fbc86
commit 2c0f0d3312

View File

@ -621,7 +621,7 @@ bool Text::cursorBackwardOneWord(Cursor & cur)
--pos;
// Skip over either a non-char inset or a full word
if (pos != 0 && !par.isLetter(pos) && !par.isChar(pos - 1))
if (pos != 0 && !par.isLetter(pos - 1) && !par.isChar(pos - 1))
--pos;
else while (pos != 0 && par.isLetter(pos - 1))
--pos;