use a scoped edition in Repeated so that repeated actions have a single undo group
This commit is contained in:
parent
deb502cb40
commit
1f4072dc72
|
@ -531,6 +531,7 @@ public:
|
||||||
|
|
||||||
void operator() (Context& context)
|
void operator() (Context& context)
|
||||||
{
|
{
|
||||||
|
scoped_edition edition(context.editor());
|
||||||
int count = context.numeric_param();
|
int count = context.numeric_param();
|
||||||
do { m_func(context); } while(--count > 0);
|
do { m_func(context); } while(--count > 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user