summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 2e248a3c..e2d01201 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -786,8 +786,7 @@ void Buffer::on_option_changed(const Option& option)
void Buffer::run_hook_in_own_context(const String& hook_name, const String& param)
{
- Editor hook_editor{*this};
- InputHandler hook_handler(hook_editor);
+ InputHandler hook_handler(*this, SelectionList{ {} });
m_hooks.run_hook(hook_name, param, hook_handler.context());
}