Always place the cursor before a separator inset when moving up or down.

This commit is contained in:
Enrico Forestieri 2016-01-10 00:08:10 +01:00
parent c8aaaff15a
commit bbb5a1a28f

View 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: