commit 48ee2fd07b405fe1417981a202c12d91801e707e
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Sun Feb 20 19:33:22 2022 +0100

    Do not call recordUndo(), lyx::dispatch handles it.
    
    This avoids extra memory use (and would mark document dirty even if
    read-only).
---
 src/BufferView.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 06ffb38..8ea0204 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2079,7 +2079,6 @@ void BufferView::dispatch(FuncRequest const & cmd, 
DispatchResult & dr)
                        docstring insname = ins->layoutName();
                        while (!insname.empty()) {
                                if (insname == name || name == from_utf8("*")) {
-                                       curs.recordUndo();
                                        lyx::dispatch(fr, dr);
                                        // we do not want to remember selection 
here
                                        curs.clearSelection();
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to