execute BufClose hook in Buffer destructor
This commit is contained in:
parent
fd8517f91e
commit
eb34f6db73
|
@ -46,6 +46,8 @@ Buffer::~Buffer()
|
||||||
m_windows.clear();
|
m_windows.clear();
|
||||||
BufferManager::instance().unregister_buffer(this);
|
BufferManager::instance().unregister_buffer(this);
|
||||||
assert(m_iterators_to_update.empty());
|
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
|
BufferIterator Buffer::iterator_at(const BufferCoord& line_and_column) const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user