From 518bc4e7f399228595935c531873dab1e2e4bf0c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 6 Jan 2014 20:10:46 +0000 Subject: [PATCH] Use a single edition for -itersel -itersel would not make sense with changing context buffer, so it should be safe. Fixes #14 --- src/commands.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.cc b/src/commands.cc index 697bee68..c5a303ea 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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;