>>>>> "Michael" == Michael Gerz <[EMAIL PROTECTED]> writes:

Michael> [EMAIL PROTECTED] wrote:
>> Log message: fix bug 2010 (boundary effects at the end of text
>> insets)

Michael> Sorry, I had to reopen bug #2010. 

Don;t be sorry for being a good tester :)

Michael> I tested various scenarios and it seems that the problem only
Michael> occurs if you enter an inset for the very first time.

Actually, it occurs after inserting something at the end of the inset
(inserting sets boundary to true).

Try the following patch.

JMarc

Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.2285
diff -u -p -r1.2285 ChangeLog
--- src/ChangeLog	20 Sep 2005 08:31:33 -0000	1.2285
+++ src/ChangeLog	20 Sep 2005 08:42:48 -0000
@@ -1,3 +1,8 @@
+2005-09-20  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* text2.C (cursorRight): do not honor boundary when at the end of
+	a paragraph. (bug 2010 again)
+
 2005-09-19  Martin Vermeer  <[EMAIL PROTECTED]>
 
 	* rowpainter.C (paintText): fix RtL space width display bug (2029)
Index: src/text2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v
retrieving revision 1.629
diff -u -p -r1.629 text2.C
--- src/text2.C	20 Sep 2005 08:31:34 -0000	1.629
+++ src/text2.C	20 Sep 2005 08:42:48 -0000
@@ -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 &&

Reply via email to