]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Call an update before setting the_locking_inset = 0 as otherwise we
[lyx.git] / src / text2.C
index bec3b8529fa38f46f456b4e3c8c6fb4c4a6fa862..08d31a00fb063ac8e2fcc967ba1cc0a73ded9a34 100644 (file)
@@ -2351,7 +2351,7 @@ void LyXText::cursorDown(BufferView * bview, bool selecting) const
        int y = cursor.y() - cursor.row()->baseline() +
                cursor.row()->height() + 1;
        setCursorFromCoordinates(bview, x, y);
-       if (!selecting) {
+       if (!selecting && cursor.row() == cursor.irow()) {
                int y1 = cursor.iy() - first_y;
                int y2 = y1;
                y -= first_y;