Hello,

I just commited a fix to cvs which fixes for me the backspace-crash
that has been plaguing LyX for some time. Go try latest cvs and tell
me what happens. I am interested to know whether your favourite way of
crashing LyX still works and whether editing still works as intended.

If you are using lyx-1.1.4fix2, please try the appended patch. If it
works, I will release fix3 very soon.

JMarc

--- lyx-1.1.4fix2/src/text.C    Mon Jan 24 23:17:06 2000
+++ lyx-1.1.4fix3pre/src/text.C Tue Mar 28 12:24:51 2000
@@ -3029,9 +3029,22 @@
                                cursor.par->ParFromPos(cursor.pos)->previous->previous,
                                cursor.par->ParFromPos(cursor.pos)->next);
                }
+
                tmppar = cursor.par;
                tmprow = cursor.row;
-               CursorLeftIntern();
+               // We used to do CursorLeftIntern() here, but it is
+               // not a good idea since it triggers the auto-delete
+               // mechanism. So we do a CursorLeftIntern()-lite,
+               // without the dreaded mechanism. (JMarc)
+               if (cursor.pos > 0) {
+                       SetCursorIntern(cursor.par, cursor.pos - 1);
+               }
+               else if (cursor.par->Previous()) { 
+                       // steps into the above paragraph.
+                       SetCursorIntern(cursor.par->Previous(), 
+                                       cursor.par->Previous()->Last());
+               }
+
                /* Pasting is not allowed, if the paragraphs have different
                   layout. I think it is a real bug of all other
                   word processors to allow it. It confuses the user.

Reply via email to