Jose' Matos wrote: > I have finally succeeded with 1.4.2svn > > I have inserted two lines with one word and pressed enter to get a third > (empty) line. > > While in the last empty line I pressed Ctrl-Shift-Left and... I got a > crash.
I see. Most certainly DEPM interferes here and we end up with an invalid cursor (anchor). Attached is a patch that fixes the crash for me, but I'm not sure it produces the behaviour we want (delete the empty paragraph, which is inconsistent to what LFUN_LEFTSEL does in this case). However, I have no idea how to get DEPM *not* to trigger in this case. Please test. Jürgen
Index: src/text2.C =================================================================== --- src/text2.C (Revision 14351) +++ src/text2.C (Arbeitskopie) @@ -1274,6 +1274,8 @@ bool LyXText::deleteEmptyParagraphMechan cur.resetAnchor(); } } + if (cur.anchor().pit() == old.pit()) + cur.resetAnchor(); updateCounters(old.buffer()); return true; }