execute BufClose hook in Buffer destructor

This commit is contained in:
Maxime Coste 2012-06-14 17:44:28 +00:00
parent fd8517f91e
commit eb34f6db73

View File

@ -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