Buffer: call BufCreate hook on construction

This commit is contained in:
Maxime Coste 2011-12-02 18:59:18 +00:00
parent 8e39edc567
commit 0b4ed2280f

View File

@ -4,6 +4,7 @@
#include "window.hh"
#include "assert.hh"
#include "utils.hh"
#include "hooks_manager.hh"
namespace Kakoune
{
@ -26,6 +27,7 @@ Buffer::Buffer(const std::string& name, Type type,
{
BufferManager::instance().register_buffer(this);
HooksManager::instance().run_hook("BufCreate", name, Context(*this));
compute_lines();
}