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:
parent
9455303a1e
commit
518bc4e7f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user