summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.cc b/src/window.cc
index 2fdec0f8..5bf9cede 100644
--- a/src/window.cc
+++ b/src/window.cc
@@ -36,6 +36,8 @@ Window::Window(Buffer& buffer)
Window::~Window()
{
+ Context hook_context{*this};
+ m_hooks.run_hook("WinClose", buffer().name(), hook_context);
m_options.unregister_watcher(*this);
}