Fix numbering with '#' register

This commit is contained in:
Maxime Coste 2014-07-14 19:00:54 +01:00
parent 563156992f
commit b96f653b6c

View File

@ -180,7 +180,7 @@ void register_registers()
{ '.', [](const Context& context) { return context.selections_content(); } }, { '.', [](const Context& context) { return context.selections_content(); } },
{ '#', [](const Context& context) { { '#', [](const Context& context) {
StringList res; StringList res;
for (size_t i = 1; i < context.selections().size(); ++i) for (size_t i = 1; i < context.selections().size()+1; ++i)
res.push_back(to_string((int)i)); res.push_back(to_string((int)i));
return res; return res;
} } } }