Do not call recordUndo(), lyx::dispatch handles it.

This avoids extra memory use (and would mark document dirty even if
read-only).
This commit is contained in:
Jean-Marc Lasgouttes 2022-02-20 19:33:22 +01:00
parent 3b28ac4637
commit 48ee2fd07b

View File

@ -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();