From c65ed50ced5af9df6842dd00633aa7178954dbc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 16 Dec 2008 09:04:27 +0000 Subject: [PATCH] * BufferView.cpp: - record undo for LFUN_NEXT_INSET_MODIFY. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27891 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 06a677c64a..5a18724296 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1399,11 +1399,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. -- 2.39.2