From 0c4addb40cfdbdc1590b5311eda82bbc607f1030 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 15 Mar 2013 14:16:15 +0100 Subject: [PATCH] replay_macro: parse keys only once --- src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index a4f21e33..8ae6735f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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); } } });