]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
BufferParams.cpp: change the package loading to:
[lyx.git] / src / Text2.cpp
index d3025d1845a757a635f28624f01f4655e002e50f..9fd32a7a9333cf224319d9f85d8cefff734be648 100644 (file)
@@ -636,7 +636,7 @@ bool Text::cursorLeft(Cursor & cur)
 
        // move to the previous paragraph or do nothing
        if (cur.pit() > 0)
-               return setCursor(cur, cur.pit() - 1, getPar(cur.pit() - 1).size());
+               return setCursor(cur, cur.pit() - 1, getPar(cur.pit() - 1).size(), true, false);
        return false;
 }
 
@@ -693,7 +693,7 @@ bool Text::cursorRight(Cursor & cur)
 
        // move to next paragraph
        if (cur.pit() != cur.lastpit())
-               return setCursor(cur, cur.pit() + 1, 0);
+               return setCursor(cur, cur.pit() + 1, 0, true, false);
        return false;
 }
 
@@ -817,7 +817,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
                plist.erase(boost::next(plist.begin(), old.pit()));
                // do not lose start of appendix marker (bug 4212)
                if (soa)
-                       boost::next(plist.begin(), old.pit())->params().startOfAppendix(true);
+                       plist[old.pit()].params().startOfAppendix(true);
 
                // see #warning (FIXME?) above 
                if (cur.depth() >= old.depth()) {