use a scoped edition in Repeated so that repeated actions have a single undo group

This commit is contained in:
Maxime Coste 2013-03-28 18:39:42 +01:00
parent deb502cb40
commit 1f4072dc72

View File

@ -531,6 +531,7 @@ public:
void operator() (Context& context)
{
scoped_edition edition(context.editor());
int count = context.numeric_param();
do { m_func(context); } while(--count > 0);
}