summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-09-26 14:27:23 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-09-26 14:27:23 +0200
commit77eb86bcdb4e2bf1b9663ccc0781abbbbd8b61bf (patch)
treec6619917511d02b71e79111ff2f4796800eea1f8 /src/commands.cc
parentefc069b531446c75e884dbaf06f0d490f617f128 (diff)
Forbid context copy
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index dd06aa75..3e02cb26 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -504,7 +504,7 @@ void add_hook(const CommandParameters& params, Context& context)
auto hook_func = [=](const String& param, const Context& context) {
if (boost::regex_match(param.begin(), param.end(), regex))
{
- Context new_context(context);
+ Context new_context(context.editor());
CommandManager::instance().execute(command, new_context);
}
};