From eb34f6db7386ac6a90b330a8bef7341fa9494a30 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 14 Jun 2012 17:44:28 +0000 Subject: [PATCH] execute BufClose hook in Buffer destructor --- src/buffer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/buffer.cc b/src/buffer.cc index c111a3b3..eab38d92 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -46,6 +46,8 @@ Buffer::~Buffer() m_windows.clear(); BufferManager::instance().unregister_buffer(this); assert(m_iterators_to_update.empty()); + + m_hook_manager.run_hook("BufClose", m_name, Context(*this)); } BufferIterator Buffer::iterator_at(const BufferCoord& line_and_column) const