mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
implement undo grouping for command sequences
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27605 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4c1c676e35
commit
7d561f91a6
@ -1349,6 +1349,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
case LFUN_COMMAND_SEQUENCE: {
|
||||
// argument contains ';'-terminated commands
|
||||
string arg = argument;
|
||||
if (theBufferList().isLoaded(buffer))
|
||||
buffer->undo().beginUndoGroup();
|
||||
while (!arg.empty()) {
|
||||
string first;
|
||||
arg = split(arg, first, ';');
|
||||
@ -1356,6 +1358,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
func.origin = cmd.origin;
|
||||
dispatch(func);
|
||||
}
|
||||
if (theBufferList().isLoaded(buffer))
|
||||
buffer->undo().endUndoGroup();
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user