Reserve data for # register
This commit is contained in:
parent
2fc5a0317c
commit
2d96fbed7c
|
@ -229,6 +229,7 @@ void register_registers()
|
|||
register_manager.add_register('#', make_dyn_reg(
|
||||
[](const Context& context) {
|
||||
StringList res;
|
||||
res.reserve(context.selections().size());
|
||||
for (size_t i = 1; i < context.selections().size()+1; ++i)
|
||||
res.push_back(to_string((int)i));
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue
Block a user