The solution is just to remove special code :)
I think there is a ticket for this, but I cannot find it.
Abdel, could you please validate my thinking?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31869
a592a061-630c-0410-9148-
cb99ea01b6c8
// We'll set this back to false if need be.
bool dispatched = true;
- if (cmd.action != LFUN_UNDO && cmd.action != LFUN_REDO)
- buffer_.undo().beginUndoGroup();
+ buffer_.undo().beginUndoGroup();
switch (cmd.action) {
break;
}
- if (cmd.action != LFUN_UNDO && cmd.action != LFUN_REDO)
- buffer_.undo().endUndoGroup();
+ buffer_.undo().endUndoGroup();
return dispatched;
}