>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: Kayvan> In the latest CVS lyx, when I type ", my cursor ends up Kayvan> *before* the inserted quote. This is annoying, since it Kayvan> results in input like this: Kayvan> Hello!|''`` (The | is where the cursor ends up) Jean-Marc> Actually this happens when inserting _any_ kind of inset! Here is a one-liner that fixes it. I copied what LyXText::insertChar does. Could somebody (Alfredo) tell me whether this is all that needs to be done? Are we supposed to handle undo there? JMarc
Index: src/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v retrieving revision 1.1928 diff -u -p -r1.1928 ChangeLog --- src/ChangeLog 27 Jun 2004 13:14:07 -0000 1.1928 +++ src/ChangeLog 29 Jun 2004 13:43:01 -0000 @@ -1,3 +1,7 @@ +2004-06-29 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * text2.C (insertInset): move cursor when inserting inset. + 2004-06-27 Jürgen Spitzmüller <[EMAIL PROTECTED]> * tex-strings.C: add "none" to string_paperpackages[], fixes Index: src/text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.574 diff -u -p -r1.574 text2.C --- src/text2.C 18 Jun 2004 13:31:53 -0000 1.574 +++ src/text2.C 29 Jun 2004 13:43:01 -0000 @@ -859,6 +859,7 @@ void LyXText::insertInset(LCursor & cur, BOOST_ASSERT(inset); cur.paragraph().insertInset(cur.pos(), inset); redoParagraph(cur); + setCursor(cur, cur.par(), cur.pos() + 1, false, cur.boundary()); }