more fixing of bug 2010

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10471 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-09-21 10:38:24 +00:00
parent 3b6e50ea33
commit 68a101a8ae
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-09-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* text2.C (cursorRight): do not honor boundary when at the end of
a paragraph. (bug 2010 again)
2005-09-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* cursor.C (paste): do nothing if `data' is empty. (bug 2033)

View File

@ -1013,11 +1013,11 @@ bool LyXText::cursorLeft(LCursor & cur)
bool LyXText::cursorRight(LCursor & cur)
{
if (cur.boundary()) {
return setCursor(cur, cur.pit(), cur.pos(), true, false);
}
if (cur.pos() != cur.lastpos()) {
if (cur.boundary())
return setCursor(cur, cur.pit(), cur.pos(),
true, false);
bool updateNeeded = false;
if (!checkAndActivateInset(cur, true)) {
if (cur.textRow().endpos() == cur.pos() + 1 &&