From: Jean-Marc Lasgouttes Date: Tue, 28 Mar 2000 02:18:52 +0000 (+0000) Subject: Did I fix it? X-Git-Tag: 1.6.10~22319 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6265fd5bdfac084f898eafdb83b9035b0fe47a30;p=features.git Did I fix it? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@631 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/text.C b/src/text.C index c81fae1f9b..5f2b1b67e5 100644 --- a/src/text.C +++ b/src/text.C @@ -3377,9 +3377,23 @@ void LyXText::Backspace() cursor.par->ParFromPos(cursor.pos)->next); } - LyXParagraph * tmppar = cursor.par; - Row * tmprow = cursor.row; - CursorLeftIntern(); + LyXParagraph * tmppar = cursor.par; + Row * tmprow = cursor.row; + + // 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()); + } + + #warning See comment on top of text.C /* Pasting is not allowed, if the paragraphs have different layout. I think it is a real bug of all other