]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Correct date
[lyx.git] / src / Cursor.cpp
index d2190e729fb44dc7364cc2c2526f2574e2d4e456..7afefcf372e3b7cd26558c69af60f8dd28ecf55d 100644 (file)
@@ -322,6 +322,7 @@ DocIterator CursorData::selectionEnd() const
        if (di.depth() > depth()) {
                di.resize(depth());
                ++di.pos();
+               di.boundary(true);
        }
        return di;
 }
@@ -2216,7 +2217,7 @@ bool Cursor::upDownInText(bool up, bool & updateNeeded)
                        if (updateNeeded)
                                forceBufferUpdate();
                }
-               return valid_destination;
+               return false;
        }
 
        // with and without selection are handled differently