* BufferView.cpp:

- record undo for LFUN_NEXT_INSET_MODIFY.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27890 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-16 09:03:47 +00:00
parent 97675f03a0
commit e836235dcb
2 changed files with 8 additions and 4 deletions

View File

@ -1358,11 +1358,15 @@ bool BufferView::dispatch(FuncRequest const & cmd)
// if there is an inset at cursor, see whether it // if there is an inset at cursor, see whether it
// can be modified. // can be modified.
Inset * inset = cur.nextInset(); Inset * inset = cur.nextInset();
if (inset) if (inset) {
cur.recordUndo();
inset->dispatch(cur, tmpcmd); inset->dispatch(cur, tmpcmd);
}
// if it did not work, try the underlying inset. // if it did not work, try the underlying inset.
if (!inset || !cur.result().dispatched()) if (!inset || !cur.result().dispatched()) {
cur.recordUndo();
cur.dispatch(tmpcmd); cur.dispatch(tmpcmd);
}
if (!cur.result().dispatched()) if (!cur.result().dispatched())
// It did not work too; no action needed. // It did not work too; no action needed.

View File

@ -57,8 +57,8 @@ What's new
- Speed up editing when the document contains paragraphs with many (>1000) - Speed up editing when the document contains paragraphs with many (>1000)
insets (bug 4443). insets (bug 4443).
- Set buffer status to changed after modifying insets such as pagebreaks - Set buffer status to changed and record UNDO after modifying insets such
or citations via context menu. as pagebreaks or citations via context menu.
- Improve debug output when tracing what actions are triggered. - Improve debug output when tracing what actions are triggered.