replay_macro: parse keys only once
This commit is contained in:
parent
84e3c99c93
commit
0c4addb40c
|
@ -478,8 +478,9 @@ void replay_macro(Context& context)
|
||||||
running_macro = true;
|
running_macro = true;
|
||||||
auto stop_macro = on_scope_end([&] { running_macro = false; });
|
auto stop_macro = on_scope_end([&] { running_macro = false; });
|
||||||
|
|
||||||
|
auto keys = parse_keys(reg_val[0]);
|
||||||
scoped_edition edition(context.editor());
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user