mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* 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:
parent
97675f03a0
commit
e836235dcb
@ -1358,11 +1358,15 @@ bool BufferView::dispatch(FuncRequest const & cmd)
|
||||
// if there is an inset at cursor, see whether it
|
||||
// can be modified.
|
||||
Inset * inset = cur.nextInset();
|
||||
if (inset)
|
||||
if (inset) {
|
||||
cur.recordUndo();
|
||||
inset->dispatch(cur, tmpcmd);
|
||||
}
|
||||
// if it did not work, try the underlying inset.
|
||||
if (!inset || !cur.result().dispatched())
|
||||
if (!inset || !cur.result().dispatched()) {
|
||||
cur.recordUndo();
|
||||
cur.dispatch(tmpcmd);
|
||||
}
|
||||
|
||||
if (!cur.result().dispatched())
|
||||
// It did not work too; no action needed.
|
||||
|
@ -57,8 +57,8 @@ What's new
|
||||
- Speed up editing when the document contains paragraphs with many (>1000)
|
||||
insets (bug 4443).
|
||||
|
||||
- Set buffer status to changed after modifying insets such as pagebreaks
|
||||
or citations via context menu.
|
||||
- Set buffer status to changed and record UNDO after modifying insets such
|
||||
as pagebreaks or citations via context menu.
|
||||
|
||||
- Improve debug output when tracing what actions are triggered.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user