replay_macro: parse keys only once

This commit is contained in:
Maxime Coste 2013-03-15 14:16:15 +01:00
parent 84e3c99c93
commit 0c4addb40c

View File

@ -478,8 +478,9 @@ void replay_macro(Context& context)
running_macro = true;
auto stop_macro = on_scope_end([&] { running_macro = false; });
auto keys = parse_keys(reg_val[0]);
scoped_edition edition(context.editor());
do { exec_keys(parse_keys(reg_val[0]), context); } while (--count > 0);
do { exec_keys(keys, context); } while (--count > 0);
}
}
});