Use a single edition for -itersel

-itersel would not make sense with changing context buffer, so
it should be safe.

Fixes #14
This commit is contained in:
Maxime Coste 2014-01-06 20:10:46 +00:00
parent 9455303a1e
commit 518bc4e7f3

View File

@ -574,6 +574,7 @@ void context_wrap(CommandParameters params, Context& context, Func func)
if (parser.has_option("itersel"))
{
DynamicSelectionList sels{real_context->buffer(), real_context->selections()};
ScopedEdition edition{input_handler.context()};
for (auto& sel : sels)
{
input_handler.context().selections() = sel;