+2005-09-13 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * text2.C (cursorEnd, cursorRight): do not set boundary to true at
+ end of paragraph. (bug 2010)
+
2005-09-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* text.C (leftMargin): check for inInset == 0
// empty text, end-1 is no valid position
return;
bool boundary = false;
- if (!cur.paragraph().isLineSeparator(end-1) &&
- !cur.paragraph().isNewline(end-1))
- {
- boundary = true;
- } else if (end != cur.lastpos())
- --end;
+ if (end != cur.lastpos()) {
+ if (!cur.paragraph().isLineSeparator(end-1)
+ && !cur.paragraph().isNewline(end-1))
+ boundary = true;
+ else
+ --end;
+ }
setCursor(cur, cur.pit(), end, true, boundary);
}
if (cur.pos() != cur.lastpos()) {
bool updateNeeded = false;
if (!checkAndActivateInset(cur, true)) {
- if (cur.textRow().endpos() == (cur.pos() + 1) &&
+ if (cur.textRow().endpos() == cur.pos() + 1 &&
+ cur.textRow().endpos() != cur.lastpos() &&
!cur.paragraph().isLineSeparator(cur.pos()) &&
!cur.paragraph().isNewline(cur.pos()))
{