Anyone else see this problem? Position the cursor on a paragraph boundary, i.e. beginning of paragraph, and press backspace. Or end of paragraph, and press delete. The paragraphs below the merged ones are not properly repainted.
The attached patch fixes this. - Martin
Index: text3.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text3.C,v retrieving revision 1.323 diff -u -p -r1.323 text3.C --- text3.C 31 Dec 2005 11:40:32 -0000 1.323 +++ text3.C 6 Jan 2006 17:20:08 -0000 @@ -621,6 +621,9 @@ void LyXText::dispatch(LCursor & cur, Fu case LFUN_DELETE: if (!cur.selection()) { + if (cur.pos() == cur.paragraph().size()) + // Par boundary, force full-screen update + singleParUpdate = false; needsUpdate = Delete(cur); cur.resetAnchor(); // It is possible to make it a lot faster still @@ -649,6 +652,9 @@ void LyXText::dispatch(LCursor & cur, Fu case LFUN_BACKSPACE: if (!cur.selection()) { if (bv->owner()->getIntl().getTransManager().backspace()) { + // Par boundary, full-screen update + if (cur.pos() == 0) + singleParUpdate = false; needsUpdate = backspace(cur); cur.resetAnchor(); // It is possible to make it a lot faster still
pgpSEcpEas9Gj.pgp
Description: PGP signature