]> git.lyx.org Git - features.git/blobdiff - src/text2.C
Three patches from Dekel. Read ChangeLog
[features.git] / src / text2.C
index adc55916568f2f4a05fd5f034fcb145701a19fb3..c64e3803228ae8c3762939584ed9aa27e49401e8 100644 (file)
@@ -3175,9 +3175,11 @@ void LyXText::SetCursor(LyXCursor & cur, LyXParagraph * par,
 
        if (pos > last + 1)   // This shouldn't happen.
                pos = last+1;
+       else if (pos < row->pos)
+               pos = row->pos;
 
        if (last < row->pos)
-                cursor_vpos = 0;
+                cursor_vpos = row->pos;
        else if (pos > last && !boundary)
                cursor_vpos = (row->par->isRightToLeftPar())
                        ? row->pos : last+1;