diff options
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index a1f943e8..59ece2ae 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -34,9 +34,11 @@ Buffer::Buffer(const String& name, Type type, apply_modification(Modification::make_insert(begin(), initial_content)); if (type == Type::NewFile) - m_hook_manager.run_hook("BufCreate", name, Context(*this)); + m_hook_manager.run_hook("BufNew", name, Context(*this)); else if (type == Type::File) m_hook_manager.run_hook("BufOpen", name, Context(*this)); + + m_hook_manager.run_hook("BufCreate", name, Context(*this)); } Buffer::~Buffer() |
