commit 9edbeef7b7eeb21cadec451e71b1109cd4dfb219
Author: Enrico Forestieri <[email protected]>
Date: Thu Jan 28 14:13:17 2016 +0100
Make sure the cursor is in texted
diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index bc12197..e9bdf89 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -1947,7 +1947,7 @@ 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))
+ if (inTexted() && pos() && paragraph().isEnvSeparator(pos() -
1))
posBackward();
} else {
// if there is a selection, we stay out of any inset,