From bbb5a1a28f047e76611641efe999739d537b27f4 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 10 Jan 2016 00:08:10 +0100 Subject: [PATCH] Always place the cursor before a separator inset when moving up or down. --- src/Cursor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index c1eb32f684..bc1219733f 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -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: -- 2.39.2