]> git.lyx.org Git - features.git/commitdiff
please Abdel
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 1 Jul 2008 15:12:28 +0000 (15:12 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 1 Jul 2008 15:12:28 +0000 (15:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25414 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index 44de33c46a7e2f714dd1a6efbeb3daa6c603f24a..1bde616c3183a1d2bacaec2a2fb8c7541e3acc5b 100644 (file)
@@ -590,11 +590,12 @@ bool Text::cursorForwardOneWord(Cursor & cur)
        Paragraph const & par = cur.paragraph();
 
        // Paragraph boundary is a word boundary
-       if (pos == lastpos)
+       if (pos == lastpos) {
                if (pit != cur.lastpit())
                        return setCursor(cur, pit + 1, 0);
                else
                        return false;
+       }
 
        if (lyxrc.mac_like_word_movement) {
                // Skip through trailing punctuation and spaces.