+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)
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 &&