]> git.lyx.org Git - features.git/commitdiff
Always place the cursor before a separator inset when moving up or down.
authorEnrico Forestieri <forenr@lyx.org>
Sat, 9 Jan 2016 23:08:10 +0000 (00:08 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 9 Jan 2016 23:08:10 +0000 (00:08 +0100)
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: