* undo.C (recordUndoInset): remember the cursor position inside

the inset.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14791 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-08-17 20:13:30 +00:00
parent 58e769d564
commit d606047b0f

View File

@ -168,6 +168,7 @@ bool textUndoOrRedo(BufferView & bv,
// We stored the full cell here as there is not much to be
// gained by storing just 'a few' paragraphs (most if not
// all math inset cells have just one paragraph!)
//lyxerr << "undo.array=" << undo.array <<endl;
asArray(undo.array, dit.cell());
} else {
// Some finer machinery is needed here.
@ -251,7 +252,9 @@ void recordUndoInset(LCursor & cur, Undo::undo_kind kind)
{
LCursor c = cur;
c.pop();
recordUndo(c, kind);
Buffer * buf = cur.bv().buffer();
doRecordUndo(kind, c, c.pit(), c.pit(), cur,
buf->params(), false, buf->undostack());
}