Did I fix it?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@631 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-03-28 02:18:52 +00:00
parent 450cbdc545
commit 6265fd5bdf

View File

@ -3379,7 +3379,21 @@ void LyXText::Backspace()
LyXParagraph * tmppar = cursor.par;
Row * 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());
}
#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