>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
Jean-Marc> This is fixed by the attached patch, that I propose to Jean-Marc> apply (thoughts?). And the patch. JMarc
Index: src/text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.632 diff -u -p -r1.632 text2.C --- src/text2.C 26 Sep 2005 22:54:12 -0000 1.632 +++ src/text2.C 7 Oct 2005 13:35:08 -0000 @@ -1056,6 +1056,7 @@ bool LyXText::cursorUp(LCursor & cur) int const y = bv_funcs::getPos(cur, cur.boundary()).y_; LCursor old = cur; editXY(cur, x, y - par.rows()[row].ascent() - 1); + cur.clearSelection(); // This happens when you move out of an inset. // And to give the DEPM the possibility of doing @@ -1101,6 +1102,7 @@ bool LyXText::cursorDown(LCursor & cur) int const y = bv_funcs::getPos(cur, cur.boundary()).y_; LCursor old = cur; editXY(cur, x, y + par.rows()[row].descent() + 1); + cur.clearSelection(); // This happens when you move out of an inset. // And to give the DEPM the possibility of doing Index: src/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v retrieving revision 1.2298 diff -u -p -r1.2298 ChangeLog --- src/ChangeLog 7 Oct 2005 12:00:39 -0000 1.2298 +++ src/ChangeLog 7 Oct 2005 13:35:09 -0000 @@ -1,3 +1,8 @@ +2005-10-07 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * text2.C (cursorDown, cursorUp): make sure to reset the anchor + (otherwise the anchor may be completely wrong and make dEPM assert). + 2005-10-07 Martin Vermeer <[EMAIL PROTECTED]> * BufferView_pimpl.C (update): choose arguments to update call so