when executing keys, propagate potentially changed editor to calling context

This commit is contained in:
Maxime Coste 2012-10-10 19:15:43 +02:00
parent dae8f65308
commit 8de754e2e9

View File

@ -687,6 +687,7 @@ void exec_keys(const KeyList& keys, Context& context)
new_context.change_ui(batch_ui); new_context.change_ui(batch_ui);
while (batch_ui.has_key_left()) while (batch_ui.has_key_left())
batch_client.handle_next_input(new_context); batch_client.handle_next_input(new_context);
context.change_editor(new_context.editor());
} }
void exec_string(const CommandParameters& params, Context& context) void exec_string(const CommandParameters& params, Context& context)