]> git.lyx.org Git - features.git/blobdiff - src/Cursor.cpp
Always place the cursor before a separator inset when moving up or down.
[features.git] / src / Cursor.cpp
index c1eb32f684b34876766c5016ee10752821c0b910..bc1219733f99a71d851d34ef5c6736336ca749f0 100644 (file)
@@ -1947,6 +1947,8 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded)
                        // Make sure that cur gets back whatever happened to dummy (Lgb)
                        operator=(dummy);
                }
+               if (pos() && paragraph().isEnvSeparator(pos() - 1))
+                       posBackward();
        } else {
                // if there is a selection, we stay out of any inset,
                // and just jump to the right position: