>>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes:

Kayvan> I thought JMarc said he has a fix, but I still see this bug in
Kayvan> the latest CVS.

Well, there were two problems:

1/ I did not have time to commit the fix

2/ the fix did not handle this particular case.

The proper fix is in now.

JMarc

Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.2021
diff -u -p -r1.2021 ChangeLog
--- src/ChangeLog	2 Nov 2004 11:25:16 -0000	1.2021
+++ src/ChangeLog	2 Nov 2004 13:08:31 -0000
@@ -1,3 +1,8 @@
+2004-11-02  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* text3.C (specialChar, dispatch): make sure cursor moves to the
+	right after inserting an inset
+
 2004-11-02  José Matos  <[EMAIL PROTECTED]>
 
 	* output_docbook.C (docbook):
@@ -35,9 +40,11 @@
 
 2004-10-30  José Matos  <[EMAIL PROTECTED]>
 
-	* paragraph.C (getFirstWord): the content should always be escaped there.
+	* paragraph.C (getFirstWord): the content should always be escaped
+	there. 
 	(simpleDocBookOnePar):
-	* output_docbook.C (makeEnvironment): replace reference to CDATA to style pass_thru.
+	* output_docbook.C (makeEnvironment): replace reference to CDATA
+	to style pass_thru. 
 
 2004-10-30  José Matos  <[EMAIL PROTECTED]>
 
@@ -68,9 +75,10 @@
 
 2004-10-28  José Matos  <[EMAIL PROTECTED]>
 
-	* output_docbook.C (makeEnvironment): move id to broadest possible scope.
+	* output_docbook.C (makeEnvironment): move id to broadest possible
+	scope. 
 
-	* sgml.C (openTag): apply substitution of <> for all attribuites.
+	* sgml.C (openTag): apply substitution of <> for all attributes.
 
 2004-10-28  José Matos  <[EMAIL PROTECTED]>
 
@@ -100,7 +108,8 @@
 
 2004-10-25  José Matos  <[EMAIL PROTECTED]>
 
-	* output_docbook.C (makeCommand): merge two if's that tested the same condition.
+	* output_docbook.C (makeCommand): merge two if's that tested the
+	same condition. 
 
 2004-10-25  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
Index: src/text3.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text3.C,v
retrieving revision 1.267
diff -u -p -r1.267 text3.C
--- src/text3.C	14 Aug 2004 21:56:40 -0000	1.267
+++ src/text3.C	2 Nov 2004 13:08:31 -0000
@@ -301,6 +301,7 @@ void specialChar(LCursor & cur, InsetSpe
 {
 	lyx::cap::replaceSelection(cur);
 	cur.insert(new InsetSpecialChar(kind));
+	cur.posRight();
 }
 
 
@@ -625,6 +626,7 @@ void LyXText::dispatch(LCursor & cur, Fu
 		if (cur.pos() > cur.paragraph().beginOfBody()) {
 			lyx::cap::replaceSelection(cur);
 			cur.insert(new InsetNewline);
+			cur.posRight();
 			moveCursor(cur, false);
 		}
 		break;
@@ -800,8 +802,10 @@ void LyXText::dispatch(LCursor & cur, Fu
 	case LFUN_SPACE_INSERT:
 		if (cur.paragraph().layout()->free_spacing)
 			insertChar(cur, ' ');
-		else
+		else {
 			doInsertInset(cur, this, cmd, false, false);
+			cur.posRight();
+		}
 		moveCursor(cur, false);
 		break;
 
@@ -1488,6 +1492,7 @@ void LyXText::dispatch(LCursor & cur, Fu
 			setLayout(cur, tclass.defaultLayoutName());
 			setParagraph(cur, Spacing(), LYX_ALIGN_LAYOUT, string(), 0);
 			insertInset(cur, new InsetFloatList(cmd.argument));
+			cur.posRight();
 		} else {
 			lyxerr << "Non-existent float type: "
 			       << cmd.argument << endl;

Reply via email to