LYXERR(Debug::DEBUG, "Cursor::dispatch: (AtPoint) cmd: "
<< cmd0 << endl << *this);
nextInset()->dispatch(*this, tmpcmd);
- if (result().dispatched())
+ if (result().dispatched()) {
+ buffer()->undo().endUndoGroup();
return;
+ }
}
// store some values to be used inside of the handlers