mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
* 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:
parent
58e769d564
commit
d606047b0f
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user